diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-17 09:08:52 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-17 09:08:52 +0000 |
commit | 53ae6b7e3f83591ad251a3f771f5bf3b8cf087ba (patch) | |
tree | 5180b96d6a84f36a515cedfa8e81d72de5ccf4fb /app/workers | |
parent | cfe63cce6a90a1c70397c1b9f6d90480f25cae0a (diff) | |
download | gitlab-ce-53ae6b7e3f83591ad251a3f771f5bf3b8cf087ba.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/all_queues.yml | 6 | ||||
-rw-r--r-- | app/workers/deployments/forward_deployment_worker.rb | 14 |
2 files changed, 20 insertions, 0 deletions
diff --git a/app/workers/all_queues.yml b/app/workers/all_queues.yml index 5ff1a331b09..f6daab73689 100644 --- a/app/workers/all_queues.yml +++ b/app/workers/all_queues.yml @@ -225,6 +225,12 @@ :latency_sensitive: :resource_boundary: :cpu :weight: 3 +- :name: deployment:deployments_forward_deployment + :feature_category: :continuous_delivery + :has_external_dependencies: + :latency_sensitive: + :resource_boundary: :unknown + :weight: 3 - :name: deployment:deployments_success :feature_category: :continuous_delivery :has_external_dependencies: diff --git a/app/workers/deployments/forward_deployment_worker.rb b/app/workers/deployments/forward_deployment_worker.rb new file mode 100644 index 00000000000..a25b8ca0478 --- /dev/null +++ b/app/workers/deployments/forward_deployment_worker.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Deployments + class ForwardDeploymentWorker + include ApplicationWorker + + queue_namespace :deployment + feature_category :continuous_delivery + + def perform(deployment_id) + Deployments::OlderDeploymentsDropService.new(deployment_id).execute + end + end +end |