Module: Dobexer::ExceptionNotifier
- Defined in:
- lib/dobexer.rb,
lib/dobexer.rb
Instance Method Summary collapse
Instance Method Details
#error(job, exception) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/dobexer.rb', line 11 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 |