2018-07-23 08:23:01 +00:00
|
|
|
class ApplicationJob < ActiveJob::Base
|
2020-02-27 15:41:35 +00:00
|
|
|
include ApplicationJob::HasDelayedJobMonitoringCompatibilty
|
2020-03-02 09:33:37 +00:00
|
|
|
include ApplicationJob::HasQueuingPriority
|
2021-05-19 13:59:17 +00:00
|
|
|
include ApplicationJob::HasCustomLogging
|
2020-02-27 15:41:35 +00:00
|
|
|
|
2018-07-23 08:23:01 +00:00
|
|
|
# Automatically retry jobs that encountered a deadlock
|
|
|
|
# retry_on ActiveRecord::Deadlocked
|
|
|
|
|
|
|
|
# Most jobs are safe to ignore if the underlying records are no longer available
|
|
|
|
# discard_on ActiveJob::DeserializationError
|
|
|
|
end
|