Class: Delayed::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Delayed::Mailer
- Defined in:
- lib/delayed/mailer.rb
Instance Method Summary collapse
Instance Method Details
#exception_notification(job, error, emails) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/delayed/mailer.rb', line 2 def exception_notification(job,error,emails) recipients emails from Conf.exception_notification['sender_address'] subject "* [JOB] #{job.name}(#{job.id}) failed on #{`hostname`} in #{Rails.root}" body "* [JOB] #{job.name}(#{job.id}) failed with #{error.class.name}: #{error.} - #{job.attempts} failed attempts\n #{error.backtrace.join("\n ")}" end |