Skip to content

Commit

Permalink
fix(batch): this is a hotfix, please be nice we just want to allow our
Browse files Browse the repository at this point in the history
infra to deal with BatchOperation when their is a big load
  • Loading branch information
mfo committed Sep 24, 2024
1 parent 063a2fc commit 0cfa9d6
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 0cfa9d6

Please sign in to comment.