diff options
Diffstat (limited to 'app/workers/pipeline_process_worker.rb')
-rw-r--r-- | app/workers/pipeline_process_worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/pipeline_process_worker.rb b/app/workers/pipeline_process_worker.rb index 2a36ab992e9..200f3619332 100644 --- a/app/workers/pipeline_process_worker.rb +++ b/app/workers/pipeline_process_worker.rb @@ -11,7 +11,9 @@ class PipelineProcessWorker # rubocop: disable CodeReuse/ActiveRecord def perform(pipeline_id, build_ids = nil) Ci::Pipeline.find_by(id: pipeline_id).try do |pipeline| - pipeline.process!(build_ids) + Ci::ProcessPipelineService + .new(pipeline) + .execute(build_ids) end end # rubocop: enable CodeReuse/ActiveRecord |