2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
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
|