Method: Resque::Job#fail
- Defined in:
- lib/resque/job.rb
#fail(exception) ⇒ Object
Given an exception object, hands off the needed parameters to the Failure module.
176 177 178 179 180 181 182 183 |
# File 'lib/resque/job.rb', line 176 def fail(exception) run_failure_hooks(exception) Failure.create \ :payload => payload, :exception => exception, :worker => worker, :queue => queue end |