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:
mfo 2024-09-24 09:31:07 +02:00
parent 063a2fc13e
commit 0cfa9d6719
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
2 changed files with 3 additions and 0 deletions

View file

@ -1,6 +1,8 @@
# frozen_string_literal: true
class BatchOperationEnqueueAllJob < ApplicationJob
queue_as :mailer # hotfix
def perform(batch_operation)
batch_operation.enqueue_all
end

View file

@ -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)