summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-22 14:59:16 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-22 14:59:16 +0200
commita61f8c44bef6d3b8ad19b7791740960b4fd9a938 (patch)
tree1356cf413e3bfd461f057e7a371a12beb2a3f13f /app/workers
parent2e91f18143d42831c37b7429c3583fbd9b4d49b8 (diff)
downloadgitlab-ce-a61f8c44bef6d3b8ad19b7791740960b4fd9a938.tar.gz
Enqueue a new stage worker in CI/CD processing queue
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/stage_update_worker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/stage_update_worker.rb b/app/workers/stage_update_worker.rb
index eef0b11e70b..c301cea5ad6 100644
--- a/app/workers/stage_update_worker.rb
+++ b/app/workers/stage_update_worker.rb
@@ -2,6 +2,8 @@ class StageUpdateWorker
include Sidekiq::Worker
include PipelineQueue
+ enqueue_in group: :processing
+
def perform(stage_id)
Ci::Stage.find_by(id: stage_id).try do |stage|
stage.update_status