BigW Consortium Gitlab

pipeline_notification_worker.rb 289 Bytes
Newer Older
1
class PipelineNotificationWorker
2
  include Sidekiq::Worker
3
  include PipelineQueue
4 5

  def perform(pipeline_id, recipients = nil)
6 7 8
    pipeline = Ci::Pipeline.find_by(id: pipeline_id)

    return unless pipeline
9 10 11 12

    NotificationService.new.pipeline_finished(pipeline, recipients)
  end
end