Method: Resque::Job#run_failure_hooks
- Defined in:
- lib/resque/job.rb
#run_failure_hooks(exception) ⇒ Object
220 221 222 223 224 225 226 227 |
# File 'lib/resque/job.rb', line 220 def run_failure_hooks(exception) begin job_args = args || [] failure_hooks.each { |hook| payload_class.send(hook, exception, *job_args) } unless @failure_hooks_ran ensure @failure_hooks_ran = true end end |