diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-01-20 13:59:13 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-01-20 14:02:07 +0100 |
commit | 10678525b0484ce5a06f643be2ce9f4fab2d4357 (patch) | |
tree | f3a7b82158110bdc63311546c553e18ee7680ec0 /app/services/ci/update_build_queue_service.rb | |
parent | 491f1375fc055805c623a3079a383de988689f3d (diff) | |
download | gitlab-ce-10678525b0484ce5a06f643be2ce9f4fab2d4357.tar.gz |
Fix shared runners queue update
Diffstat (limited to 'app/services/ci/update_build_queue_service.rb')
-rw-r--r-- | app/services/ci/update_build_queue_service.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/ci/update_build_queue_service.rb b/app/services/ci/update_build_queue_service.rb index 2e901016666..d57adf27104 100644 --- a/app/services/ci/update_build_queue_service.rb +++ b/app/services/ci/update_build_queue_service.rb @@ -6,6 +6,12 @@ module Ci runner.tick_runner_queue end end + + Ci::Runner.shared.each do |runner| + if runner.can_pick?(build) + runner.tick_runner_queue + end + end if build.project.shared_runners_enabled? end end end |