[Fix #1456] When job crashed notify Sentry
This commit is contained in:
parent
0c6aa42f55
commit
1bc93b7235
1 changed files with 4 additions and 0 deletions
|
@ -6,4 +6,8 @@ class ApplicationJob < ActiveJob::Base
|
|||
after_perform do |job|
|
||||
Rails.logger.info("#{job.class.name} ended at #{Time.now}")
|
||||
end
|
||||
|
||||
def error(job, exception)
|
||||
Raven.capture_exception(exception)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue