Add ActiveJob configuration / base class
This commit is contained in:
parent
902b5aca32
commit
8c02483334
2 changed files with 9 additions and 0 deletions
7
app/jobs/application_job.rb
Normal file
7
app/jobs/application_job.rb
Normal 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
|
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue