Update runner info on all authenticated requests
This commit is contained in:
parent
0be8b3cdf6
commit
397442a061
|
|
@ -20,6 +20,8 @@ module API
|
|||
|
||||
def authenticate_runner!
|
||||
forbidden! unless current_runner
|
||||
|
||||
update_runner_info
|
||||
end
|
||||
|
||||
def current_runner
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@ module API
|
|||
post '/request' do
|
||||
authenticate_runner!
|
||||
no_content! unless current_runner.active?
|
||||
update_runner_info
|
||||
|
||||
if current_runner.runner_queue_value_latest?(params[:last_update])
|
||||
header 'X-GitLab-Last-Update', params[:last_update]
|
||||
|
|
|
|||
Loading…
Reference in New Issue