fix(batch): this is a hotfix, please be nice we just want to allow our
infra to deal with BatchOperation when their is a big load
This commit is contained in:
parent
063a2fc13e
commit
0cfa9d6719
2 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class BatchOperationEnqueueAllJob < ApplicationJob
|
||||
queue_as :mailer # hotfix
|
||||
|
||||
def perform(batch_operation)
|
||||
batch_operation.enqueue_all
|
||||
end
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class BatchOperationProcessOneJob < ApplicationJob
|
||||
queue_as :mailer # hotfix
|
||||
retry_on StandardError, attempts: 1 # default 5, for now no retryable behavior
|
||||
|
||||
def perform(batch_operation, dossier)
|
||||
|
|
Loading…
Reference in a new issue