Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Set job limits for HealthStatusMailerJob

Andreas Pfohl21497f8f107a
diff --git a/modules/storages/app/workers/storages/health_status_mailer_job.rb b/modules/storages/app/workers/storages/health_status_mailer_job.rb
index a00c064f815..d3ffca3b896 100644
--- a/modules/storages/app/workers/storages/health_status_mailer_job.rb
+++ b/modules/storages/app/workers/storages/health_status_mailer_job.rb
@@ -33,10 +33,10 @@ module Storages
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:)