summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-08-21 11:47:44 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-08-21 11:47:44 +0000
commite00e62c2c8ddf8d12145660a3478065caab4c4ca (patch)
treedf5600704090efccaa399816556696e4487c4e36 /app/workers
parentd6547ce0e78e2eecac76af8509cc5f7eea5fc369 (diff)
parent3a1103fd9173e8cb7a70c871d6a54a846f6eee4a (diff)
downloadgitlab-ce-e00e62c2c8ddf8d12145660a3478065caab4c4ca.tar.gz
Merge branch 'backstage/gb/migrate-stages-statuses' into 'master'
Migrate CI/CD stages statuses Closes #33453 See merge request !12584
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/stage_update_worker.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/workers/stage_update_worker.rb b/app/workers/stage_update_worker.rb
new file mode 100644
index 00000000000..eef0b11e70b
--- /dev/null
+++ b/app/workers/stage_update_worker.rb
@@ -0,0 +1,10 @@
+class StageUpdateWorker
+ include Sidekiq::Worker
+ include PipelineQueue
+
+ def perform(stage_id)
+ Ci::Stage.find_by(id: stage_id).try do |stage|
+ stage.update_status
+ end
+ end
+end