[Fix #1456] When job crashed notify Sentry

This commit is contained in:
Mathieu Magnin 2018-02-22 10:28:24 +01:00
parent 0c6aa42f55
commit 1bc93b7235

View file

@ -6,4 +6,8 @@ class ApplicationJob < ActiveJob::Base
after_perform do |job| after_perform do |job|
Rails.logger.info("#{job.class.name} ended at #{Time.now}") Rails.logger.info("#{job.class.name} ended at #{Time.now}")
end end
def error(job, exception)
Raven.capture_exception(exception)
end
end end