We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc0e2db commit 025245eCopy full SHA for 025245e
lib/resque/job.rb
@@ -217,7 +217,8 @@ def failure_hooks
217
218
def run_failure_hooks(exception)
219
begin
220
- failure_hooks.each { |hook| payload_class.send(hook, exception, *Array.wrap(args)) } unless @failure_hooks_ran
+ job_args = args || []
221
+ failure_hooks.each { |hook| payload_class.send(hook, exception, *job_args) } unless @failure_hooks_ran
222
ensure
223
@failure_hooks_ran = true
224
end
0 commit comments