Skip to content

Instantly share code, notes, and snippets.

@mguterl
Created August 18, 2010 12:41
Show Gist options
  • Save mguterl/534574 to your computer and use it in GitHub Desktop.
Save mguterl/534574 to your computer and use it in GitHub Desktop.
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
@etagwerker
Copy link

Awesome.

I ran into an async issue with Cucumber+Resque and adding a step with this code solved it.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment