2016-10-17 10:12:07 +00:00
|
|
|
class PipelineNotificationWorker
|
2016-09-28 09:22:06 +00:00
|
|
|
include Sidekiq::Worker
|
|
|
|
|
|
|
|
def perform(pipeline_id, recipients = nil)
|
|
|
|
pipeline = Ci::Pipeline.find(pipeline_id)
|
|
|
|
|
|
|
|
NotificationService.new.pipeline_finished(pipeline, recipients)
|
|
|
|
end
|
|
|
|
end
|