Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/propagate_integration_project_worker.rb')
-rw-r--r--app/workers/propagate_integration_project_worker.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/workers/propagate_integration_project_worker.rb b/app/workers/propagate_integration_project_worker.rb
index 188d81e5fc1..90cf27c4176 100644
--- a/app/workers/propagate_integration_project_worker.rb
+++ b/app/workers/propagate_integration_project_worker.rb
@@ -3,16 +3,19 @@
class PropagateIntegrationProjectWorker
include ApplicationWorker
+ sidekiq_options retry: 3
+
feature_category :integrations
+ tags :exclude_from_kubernetes
idempotent!
# rubocop: disable CodeReuse/ActiveRecord
def perform(integration_id, min_id, max_id)
- integration = Service.find_by_id(integration_id)
+ integration = Integration.find_by_id(integration_id)
return unless integration
batch = Project.where(id: min_id..max_id).without_integration(integration)
- batch = batch.in_namespace(integration.group.self_and_descendants) if integration.group_id
+ batch = batch.in_namespace(integration.group.self_and_descendants) if integration.group_level?
return if batch.empty?