bugant/resque-scheduler — pull request #2 by chewi (2012-08-22 15:18:45+00:00)
Title: remove_delayed test fix and new enqueue_delayed method

I thought it would be nice to have an enqueue_delayed method to compliment remove_delayed. I saw your own pull request and decided it would be best to branch off that.

This was simple to implement but I do have a wider concern. In general, jobs are created after their keys are removed. Is that safe? What if something breaks in between? The job would effectively be lost, no? I could have made my new method create the job first but I thought I should match the behaviour of enqueue_delayed_items_for_timestamp. What do you think?