Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #25 from yaauie/failure-catching

Catch everything thrown for on_failure hooks
  • Loading branch information...
commit fb12a1adcb4fdeb8a9f173461c2ceeda36737196 2 parents b38de54 + 2e36669
@justinweiss justinweiss authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/resque_unit/resque.rb
View
2  lib/resque_unit/resque.rb
@@ -208,7 +208,7 @@ def perform_with_hooks(job_payload)
# If an exception occurs during the job execution, look for an
# on_failure hook then re-raise.
- rescue => e
+ rescue Object => e
failure_hooks.each { |hook| job_class.send(hook, e, *job_payload["args"]) }
raise e
end
Please sign in to comment.
Something went wrong with that request. Please try again.