Skip to content

Commit

Permalink
Log any catastrophic issues when reserving, but still raise the error…
Browse files Browse the repository at this point in the history
… so that resque dies.
  • Loading branch information
lazyatom authored and defunkt committed Feb 3, 2011
1 parent 6a3a283 commit fd03267
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/resque/worker.rb
Expand Up @@ -178,6 +178,10 @@ def reserve
end

nil
rescue Exception => e
log "Error reserving job: #{e.inspect}"
log e.backtrace.join("\n")
raise e
end

# Returns a list of queues to use when searching for a job.
Expand Down

0 comments on commit fd03267

Please sign in to comment.