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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Limits the CreateDateAlertsNotificationsJob
Marcello Rocha43002cc32835
diff --git a/app/workers/notifications/create_date_alerts_notifications_job.rb b/app/workers/notifications/create_date_alerts_notifications_job.rbindex c29d714b20e..e5fb7938ea8 100644--- a/app/workers/notifications/create_date_alerts_notifications_job.rb+++ b/app/workers/notifications/create_date_alerts_notifications_job.rb@@ -28,6 +28,17 @@module Notificationsclass CreateDateAlertsNotificationsJob < ApplicationJob+ include GoodJob::ActiveJobExtensions::Concurrency++ good_job_control_concurrency_with(+ enqueue_limit: 1,+ perform_limit: 1+ )++ retry_on GoodJob::ActiveJobExtensions::Concurrency::ConcurrencyExceededError,+ wait: 5.minutes,+ attempts: 3+def perform(user)return unless EnterpriseToken.allows_to?(:date_alerts)diff --git a/modules/storages/app/workers/storages/manage_storage_integrations_job.rb b/modules/storages/app/workers/storages/manage_storage_integrations_job.rbindex 52082a57182..1588ab8b08c 100644--- a/modules/storages/app/workers/storages/manage_storage_integrations_job.rb+++ b/modules/storages/app/workers/storages/manage_storage_integrations_job.rb@@ -46,7 +46,7 @@ module Storagesenqueue_limit: 1,perform_limit: 1)- S+retry_on GoodJob::ActiveJobExtensions::Concurrency::ConcurrencyExceededError,wait: 5.minutes,attempts: 3