Skip to content

Instantly share code, notes, and snippets.

@thermistor
Created November 19, 2011 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thermistor/1379269 to your computer and use it in GitHub Desktop.
Save thermistor/1379269 to your computer and use it in GitHub Desktop.
have failed jobs report via airbrake as well
# have failed jobs report via airbrake as well
# save it as config/initializers/delayed_job.rb
class Delayed::Worker
protected
def handle_failed_job_with_airbrake(job, error)
Airbrake.notify_or_ignore(error)
handle_failed_job_without_airbrake(job, error)
end
alias_method_chain :handle_failed_job, :airbrake
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment