2016-12-22 21:49:31 +01:00
|
|
|
class ApplicationJob < ActiveJob::Base
|
2017-10-03 16:31:17 +02:00
|
|
|
before_perform do |job|
|
|
|
|
Rails.logger.info("#{job.class.name} started at #{Time.now}")
|
|
|
|
end
|
|
|
|
|
|
|
|
after_perform do |job|
|
|
|
|
Rails.logger.info("#{job.class.name} ended at #{Time.now}")
|
|
|
|
end
|
2018-02-22 10:28:24 +01:00
|
|
|
|
|
|
|
def error(job, exception)
|
|
|
|
Raven.capture_exception(exception)
|
|
|
|
end
|
2016-12-22 21:49:31 +01:00
|
|
|
end
|