mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
13 lines
291 B
Ruby
13 lines
291 B
Ruby
class PipelineNotificationWorker
|
|
include ApplicationWorker
|
|
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
|