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_inherit_descendant_worker.rb')
-rw-r--r--app/workers/propagate_integration_inherit_descendant_worker.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/workers/propagate_integration_inherit_descendant_worker.rb b/app/workers/propagate_integration_inherit_descendant_worker.rb
index d589619818c..9067af12de3 100644
--- a/app/workers/propagate_integration_inherit_descendant_worker.rb
+++ b/app/workers/propagate_integration_inherit_descendant_worker.rb
@@ -3,15 +3,18 @@
class PropagateIntegrationInheritDescendantWorker
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 = Service.inherited_descendants_from_self_or_ancestors_from(integration).where(id: min_id..max_id)
+ batch = Integration.inherited_descendants_from_self_or_ancestors_from(integration).where(id: min_id..max_id)
BulkUpdateIntegrationService.new(integration, batch).execute
end