blob: cdb860b66758056253cff38cfb2883cbfe620d41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
class PipelineNotificationWorker
include Sidekiq::Worker
include PipelineQueue
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
|