Created
April 13, 2010 04:29
-
-
Save danielvlopes/364316 to your computer and use it in GitHub Desktop.
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
Delayed::Worker.backend = :active_record | |
Delayed::Worker.destroy_failed_jobs = false | |
Delayed::Worker.sleep_delay = 60 | |
Delayed::Worker.max_attempts = 25 | |
Delayed::Worker.max_run_time = 5.minutes | |
class Delayed::Worker | |
alias_method :original_handle_failed_job, :handle_failed_job | |
protected | |
def handle_failed_job(job, error) | |
HoptoadNotifier.notify(error) | |
original_handle_failed_job(job,error) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment