Created
November 19, 2011 19:38
-
-
Save thermistor/1379269 to your computer and use it in GitHub Desktop.
have failed jobs report via airbrake as well
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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