metamaps--metamaps/config/initializers/delayed_job.rb

10 lines
262 B
Ruby
Raw Permalink Normal View History

2017-09-13 14:11:04 +00:00
Delayed::Worker.class_eval do
def handle_failed_job_with_notification(job, error)
handle_failed_job_without_notification(job, error)
ExceptionNotifier.notify_exception(error)
end
alias_method_chain :handle_failed_job, :notification
end