diff options
author | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-24 19:44:36 +0300 |
---|---|---|
committer | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-29 11:14:41 +0300 |
commit | 9226804bf32bcecd826818eb626714b52285c5e8 (patch) | |
tree | 4c3dd95d9fabe306791b5c75a151e50294da0d9b | |
parent | edb14511aa9d96c41fc2dc1f6f7b0be7779149fd (diff) | |
download | gitlab-ce-9226804bf32bcecd826818eb626714b52285c5e8.tar.gz |
replace `is_runner_queue_value_latest?` with `runner_queue_value_latest?`
-rw-r--r-- | app/models/ci/runner.rb | 2 | ||||
-rw-r--r-- | lib/api/runner.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index c6d23898560..906a76ec560 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -142,7 +142,7 @@ module Ci expire: RUNNER_QUEUE_EXPIRY_TIME, overwrite: false) end - def is_runner_queue_value_latest?(value) + def runner_queue_value_latest?(value) ensure_runner_queue_value == value if value.present? end diff --git a/lib/api/runner.rb b/lib/api/runner.rb index 88fc62d33df..1a7ded31c91 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -78,7 +78,7 @@ module API no_content! unless current_runner.active? update_runner_info - if current_runner.is_runner_queue_value_latest?(params[:last_update]) + if current_runner.runner_queue_value_latest?(params[:last_update]) header 'X-GitLab-Last-Update', params[:last_update] Gitlab::Metrics.add_event(:build_not_found_cached) return no_content! |