Skip to content

Commit

Permalink
Make worker use global Resque.reserve method to allow for a single po…
Browse files Browse the repository at this point in the history
…int of override.
  • Loading branch information
jhuckabee authored and defunkt committed Sep 16, 2011
1 parent 192d347 commit 11f3fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Expand Up @@ -181,7 +181,7 @@ def perform(job)
def reserve
queues.each do |queue|
log! "Checking #{queue}"
if job = Resque::Job.reserve(queue)
if job = Resque.reserve(queue)
log! "Found job on #{queue}"
return job
end
Expand Down

0 comments on commit 11f3fac

Please sign in to comment.