Created
August 18, 2010 12:41
-
-
Save mguterl/534574 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def do_work | |
Resque::Scheduler.handle_delayed_items | |
Resque.queues.sort.each do |queue| | |
if job = Resque::Job.reserve(queue) | |
job.perform | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome.
I ran into an async issue with Cucumber+Resque and adding a step with this code solved it.
Thank you!