diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 21:08:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 21:08:00 +0300 |
commit | f781b0b69368ea3181cf892305c60a22886c0d7e (patch) | |
tree | 0737d7313d4e5760e3addcec0b0f40c474008dcf /app/workers | |
parent | 1d5ae049f089db097048fa896105ad75fe859596 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/all_queues.yml | 7 | ||||
-rw-r--r-- | app/workers/propagate_integration_worker.rb | 16 |
2 files changed, 23 insertions, 0 deletions
diff --git a/app/workers/all_queues.yml b/app/workers/all_queues.yml index 1f9a53d64d9..1454ededc04 100644 --- a/app/workers/all_queues.yml +++ b/app/workers/all_queues.yml @@ -1291,6 +1291,13 @@ :resource_boundary: :unknown :weight: 1 :idempotent: true +- :name: propagate_integration + :feature_category: :integrations + :has_external_dependencies: + :urgency: :low + :resource_boundary: :unknown + :weight: 1 + :idempotent: true - :name: propagate_service_template :feature_category: :source_code_management :has_external_dependencies: diff --git a/app/workers/propagate_integration_worker.rb b/app/workers/propagate_integration_worker.rb new file mode 100644 index 00000000000..cbab38465bc --- /dev/null +++ b/app/workers/propagate_integration_worker.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +class PropagateIntegrationWorker + include ApplicationWorker + + feature_category :integrations + + idempotent! + + def perform(integration_id, overwrite) + Admin::PropagateIntegrationService.propagate( + integration: Service.find(integration_id), + overwrite: overwrite + ) + end +end |