diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-10-17 13:12:07 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-10-17 13:12:07 +0300 |
commit | 2e067480a9824228542c229a09aa4b6f006dc6f3 (patch) | |
tree | b3f34d83e897bcfd3433ca8b44a68ac26a128833 /app/workers/pipeline_notification_worker.rb | |
parent | b4e751557ad35d7c5fbed55328892c43a4c84ba5 (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.rb | 9 |
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 |