Created
July 7, 2010 03:50
-
-
Save apeckham/466275 to your computer and use it in GitHub Desktop.
updated from http://stackoverflow.com/questions/1276164/how-do-i-integrate-hoptoad-with-delayedjob-and-daemonspawn
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
class Delayed::Worker | |
def handle_failed_job_with_hoptoad(job, error) | |
HoptoadNotifier.notify(error) | |
handle_failed_job_without_hoptoad(job, error) | |
end | |
alias_method_chain :handle_failed_job, :hoptoad | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment