gitlab-org--gitlab-foss/app/services/ci/update_build_queue_service.rb

12 lines
236 B
Ruby

module Ci
class UpdateBuildQueueService < BaseService
def execute(build)
build.project.runners.select do |runner|
if runner.can_pick?(build)
runner.tick_runner_queue
end
end
end
end
end