Merge pull request #10857 from mfo/US/move-batch-operation-jobs-to-higher-priority-queue

amelioration: ETQ operateur d'instance, je souhaite que les jobs de batch soient prioritaire par rapport aux jobs de vignette
This commit is contained in:
mfo 2024-09-24 07:42:51 +00:00 committed by GitHub
commit 7f19111997
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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)