Commit f35336a1 authored by Kim "BKC" Carlbäcker's avatar Kim "BKC" Carlbäcker

Fixed broken build

parent 74a48ecd
module Ci
class UpdateBuildQueueService < BaseService
class UpdateBuildQueueService
def execute(build)
build.project.runners.select do |runner|
if runner.can_pick?(build)
......
......@@ -4,7 +4,7 @@ class BuildQueueWorker
def perform(build_id)
Ci::Build.find_by(id: build_id).try do |build|
UpdateBuildQueueService.execute(build)
Ci::UpdateBuildQueueService.new.execute(build)
end
end
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