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

10 lines
234 B
Ruby
Raw Normal View History

class SendPipelineNotificationWorker
include Sidekiq::Worker
def perform(pipeline_id, recipients = nil)
pipeline = Ci::Pipeline.find(pipeline_id)
NotificationService.new.pipeline_finished(pipeline, recipients)
end
end