Skip to content

Commit

Permalink
Merge pull request #10857 from mfo/US/move-batch-operation-jobs-to-hi…
Browse files Browse the repository at this point in the history
…gher-priority-queue

amelioration: ETQ operateur d'instance, je souhaite que les jobs de batch soient prioritaire par rapport aux jobs de vignette
  • Loading branch information
mfo authored Sep 24, 2024
2 parents 063a2fc + 0cfa9d6 commit 7f19111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/batch_operation_enqueue_all_job.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true

class BatchOperationEnqueueAllJob < ApplicationJob
queue_as :mailer # hotfix

def perform(batch_operation)
batch_operation.enqueue_all
end
Expand Down
1 change: 1 addition & 0 deletions app/jobs/batch_operation_process_one_job.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 7f19111

Please sign in to comment.