Skip to content

Commit

Permalink
Set job limits for HealthStatusMailerJob
Browse files Browse the repository at this point in the history
  • Loading branch information
apfohl committed Mar 27, 2024
1 parent 38bba33 commit 21497f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class HealthStatusMailerJob < ApplicationJob
include GoodJob::ActiveJobExtensions::Concurrency

good_job_control_concurrency_with(
total_limit: 1,
total_limit: 2,
enqueue_limit: 1,
perform_limit: 1,
key: self.class.name
key: -> { "#{self.class.name}-#{arguments.last[:storage]}" }
)

def perform(storage:)
Expand Down

0 comments on commit 21497f8

Please sign in to comment.