2021-03-31 15:10:27 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
|
|
|
class InitialPipelineProcessWorker
|
|
|
|
include ApplicationWorker
|
2021-04-30 18:10:09 +00:00
|
|
|
|
|
|
|
sidekiq_options retry: 3
|
2021-03-31 15:10:27 +00:00
|
|
|
include PipelineQueue
|
|
|
|
|
|
|
|
queue_namespace :pipeline_processing
|
|
|
|
feature_category :continuous_integration
|
|
|
|
urgency :high
|
|
|
|
loggable_arguments 1
|
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform(pipeline_id)
|
|
|
|
Ci::Pipeline.find_by_id(pipeline_id).try do |pipeline|
|
2021-05-25 09:10:54 +00:00
|
|
|
Ci::PipelineCreation::StartPipelineService
|
2021-03-31 15:10:27 +00:00
|
|
|
.new(pipeline)
|
|
|
|
.execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|