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:
commit
7f19111997
2 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class BatchOperationEnqueueAllJob < ApplicationJob
|
class BatchOperationEnqueueAllJob < ApplicationJob
|
||||||
|
queue_as :mailer # hotfix
|
||||||
|
|
||||||
def perform(batch_operation)
|
def perform(batch_operation)
|
||||||
batch_operation.enqueue_all
|
batch_operation.enqueue_all
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class BatchOperationProcessOneJob < ApplicationJob
|
class BatchOperationProcessOneJob < ApplicationJob
|
||||||
|
queue_as :mailer # hotfix
|
||||||
retry_on StandardError, attempts: 1 # default 5, for now no retryable behavior
|
retry_on StandardError, attempts: 1 # default 5, for now no retryable behavior
|
||||||
|
|
||||||
def perform(batch_operation, dossier)
|
def perform(batch_operation, dossier)
|
||||||
|
|
Loading…
Reference in a new issue