diff options
Diffstat (limited to 'app/services/jira_connect_subscriptions/create_service.rb')
-rw-r--r-- | app/services/jira_connect_subscriptions/create_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/jira_connect_subscriptions/create_service.rb b/app/services/jira_connect_subscriptions/create_service.rb index 781eaaf0efb..b169d97615d 100644 --- a/app/services/jira_connect_subscriptions/create_service.rb +++ b/app/services/jira_connect_subscriptions/create_service.rb @@ -4,7 +4,7 @@ module JiraConnectSubscriptions class CreateService < ::JiraConnectSubscriptions::BaseService include Gitlab::Utils::StrongMemoize MERGE_REQUEST_SYNC_BATCH_SIZE = 20 - MERGE_REQUEST_SYNC_BATCH_delay = 1.minute.freeze + MERGE_REQUEST_SYNC_BATCH_DELAY = 1.minute.freeze def execute unless namespace && can?(current_user, :create_jira_connect_subscription, namespace) @@ -39,7 +39,7 @@ module JiraConnectSubscriptions namespace.all_projects.each_batch(of: MERGE_REQUEST_SYNC_BATCH_SIZE) do |projects, index| JiraConnect::SyncProjectWorker.bulk_perform_in_with_contexts( - index * MERGE_REQUEST_SYNC_BATCH_delay, + index * MERGE_REQUEST_SYNC_BATCH_DELAY, projects, arguments_proc: -> (project) { [project.id, Atlassian::JiraConnect::Client.generate_update_sequence_id] }, context_proc: -> (project) { { project: project } } |