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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-21 15:02:20 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-21 15:02:20 +0300
commit8417507201809daf0554c13ffb695b8142274f4f (patch)
treec0ae17734618c02eec7861aa85abc53a83a22e7e /app/workers/pipeline_hooks_worker.rb
parent48776f2786d22cecab97417141d43060c6cdee26 (diff)
Assign all pipeline workers to specific queues
Diffstat (limited to 'app/workers/pipeline_hooks_worker.rb')
-rw-r--r--app/workers/pipeline_hooks_worker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/pipeline_hooks_worker.rb b/app/workers/pipeline_hooks_worker.rb
index 7e36eacebf8..30a75ec8435 100644
--- a/app/workers/pipeline_hooks_worker.rb
+++ b/app/workers/pipeline_hooks_worker.rb
@@ -2,6 +2,8 @@ class PipelineHooksWorker
include Sidekiq::Worker
include PipelineQueue
+ enqueue_in group: :hooks
+
def perform(pipeline_id)
Ci::Pipeline.find_by(id: pipeline_id)
.try(:execute_hooks)