diegok/resque-perl

Support for delayed starts?

Closed this issue · 2 comments

I'd love to be able to schedule jobs, preferably by specifying a minimum start time (epoch or ISO would work for me). Having looked in Resque::Worker::work() it looks like it could be possible to support this by first checking to see if the next job in line has a min. start time. If if does and it's not yet that time, it could put the job onto the back of the queue or simply moving along to the next job.

If this is something you're interested in supporting, I'd be happy to contribute code.

Hi!, sorry for being so late....

As you've said this is possible to implement. But I thing this should be a plugin instead of a basic feature to mantain back compat of core to ruby's resque. If you're still interested to work on this I would be more than happy to talk (on the IRC #resque channel) with you and help in every aspect I can!. :-)

Well, I will close this issue as this is very easy to implement as a plugin or as a mechanism (role) around job classes.