diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-02-26 16:20:29 +0100 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-04-23 09:21:56 +0200 |
commit | 9447e5c27d8f840eaf4eee9635a5149ab36d93b6 (patch) | |
tree | 62b1cbaa3b63cfbc2e9bf88fd83117a0fc50493a /app/services/ci/update_build_queue_service.rb | |
parent | e13026a378f186c3ef2b08720fa8420ead972f0f (diff) | |
download | gitlab-ce-9447e5c27d8f840eaf4eee9635a5149ab36d93b6.tar.gz |
extract method to adhere to "tell, don't ask"
Diffstat (limited to 'app/services/ci/update_build_queue_service.rb')
-rw-r--r-- | app/services/ci/update_build_queue_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/update_build_queue_service.rb b/app/services/ci/update_build_queue_service.rb index ab81766abf3..05dbebc4f8d 100644 --- a/app/services/ci/update_build_queue_service.rb +++ b/app/services/ci/update_build_queue_service.rb @@ -16,7 +16,7 @@ module Ci def tick_for(build, runners) runners.each do |runner| - runner.tick_runner_queue if runner.can_pick?(build) + runner.invalidate_build_cache!(build) end end end |