Commit e0cfa927 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Execute the worker in pipeline_processing queue

parent c6e4b6a7
......@@ -5,8 +5,12 @@ module Ci
include ApplicationWorker
include PipelineQueue
queue_namespace :pipeline_processing
def perform(build_id)
::Ci::Build.find_by_id(build_id).try do |build|
break unless build.scheduled?
Ci::RunScheduledBuildService
.new(build.project, build.user).execute(build)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment