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:
authorLin Jen-Shin <godfat@godfat.org>2016-10-17 13:12:07 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-10-17 13:12:07 +0300
commit2e067480a9824228542c229a09aa4b6f006dc6f3 (patch)
treeb3f34d83e897bcfd3433ca8b44a68ac26a128833 /app/workers/pipeline_notification_worker.rb
parentb4e751557ad35d7c5fbed55328892c43a4c84ba5 (diff)
Rename for a more consistent pipeline worker name, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342/diffs#note_17039533
Diffstat (limited to 'app/workers/pipeline_notification_worker.rb')
-rw-r--r--app/workers/pipeline_notification_worker.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/workers/pipeline_notification_worker.rb b/app/workers/pipeline_notification_worker.rb
new file mode 100644
index 00000000000..f4e9a4cf245
--- /dev/null
+++ b/app/workers/pipeline_notification_worker.rb
@@ -0,0 +1,9 @@
+class PipelineNotificationWorker
+ include Sidekiq::Worker
+
+ def perform(pipeline_id, recipients = nil)
+ pipeline = Ci::Pipeline.find(pipeline_id)
+
+ NotificationService.new.pipeline_finished(pipeline, recipients)
+ end
+end