We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3627fc commit e7d3ec9Copy full SHA for e7d3ec9
lib/resque/job.rb
@@ -32,7 +32,7 @@ class Job
32
def initialize(queue, payload)
33
@queue = queue
34
@payload = payload
35
- @failure_hooks_already_ran = false
+ @failure_hooks_ran = false
36
end
37
38
# Creates a job by placing it on a queue. Expects a string queue
@@ -217,9 +217,9 @@ 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_already_ran
+ failure_hooks.each { |hook| payload_class.send(hook, exception, *Array.wrap(args)) } unless @failure_hooks_ran
221
ensure
222
- @failure_hooks_already_ran = true
+ @failure_hooks_ran = true
223
224
225
0 commit comments