Module: Dobexer::ExceptionNotifier
- Defined in:
- lib/dobexer.rb,
lib/dobexer/error.rb
Instance Method Summary collapse
Instance Method Details
#error(job, exception) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/dobexer/error.rb', line 3 def error(job, exception) return if job.attempts > 0 env = {"HTTP_HOST" => "delayed_job_fake_host", "REQUEST_URI" => "/", "REQUEST_METHOD" => "GET", "rack.input" => "", "rack.url_scheme" => "http"} ::ExceptionNotifier::Notifier.exception_notification(env, exception).deliver end |