Add ActiveJob configuration / base class

This commit is contained in:
Ryan Lue 2018-07-23 16:23:01 +08:00
parent 902b5aca32
commit 8c02483334
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,7 @@
class ApplicationJob < ActiveJob::Base
# 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

View file

@ -47,6 +47,8 @@ module Zammad
'observer::_sla::_ticket_rebuild_escalation',
'observer::_transaction'
config.active_job.queue_adapter = :delayed_job
# REST api path
config.api_path = '/api/v1'