diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-21 04:27:03 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-21 04:27:03 +0100 |
commit | f35336a1e6b1eb750a501a5d54396816f4800e69 (patch) | |
tree | 1ddfddc0c74988a35354f62a19b7824320099de2 /app | |
parent | 74a48ecd6bce154dff9704575ba3d0824a73e8e8 (diff) | |
download | gitlab-ce-f35336a1e6b1eb750a501a5d54396816f4800e69.tar.gz |
Fixed broken build
Diffstat (limited to 'app')
-rw-r--r-- | app/services/ci/update_build_queue_service.rb | 2 | ||||
-rw-r--r-- | app/workers/build_queue_worker.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/ci/update_build_queue_service.rb b/app/services/ci/update_build_queue_service.rb index b324863feef..704b872ddd0 100644 --- a/app/services/ci/update_build_queue_service.rb +++ b/app/services/ci/update_build_queue_service.rb @@ -1,5 +1,5 @@ module Ci - class UpdateBuildQueueService < BaseService + class UpdateBuildQueueService def execute(build) build.project.runners.select do |runner| if runner.can_pick?(build) diff --git a/app/workers/build_queue_worker.rb b/app/workers/build_queue_worker.rb index c0ceb8d423a..fa9e097e40a 100644 --- a/app/workers/build_queue_worker.rb +++ b/app/workers/build_queue_worker.rb @@ -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 |