replace is_runner_queue_value_latest?
with runner_queue_value_latest?
This commit is contained in:
parent
edb14511aa
commit
9226804bf3
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue