gitlab-org--gitlab-foss/app/workers/pipeline_notification_worke...

12 lines
265 B
Ruby
Raw Normal View History

class PipelineNotificationWorker
include Sidekiq::Worker
def perform(pipeline_id, recipients = nil)
pipeline = Ci::Pipeline.find_by(id: pipeline_id)
return unless pipeline
NotificationService.new.pipeline_finished(pipeline, recipients)
end
end