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

10 lines
230 B
Ruby
Raw Normal View History

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