Update runner info on all authenticated requests

This commit is contained in:
Matija Čupić 2018-01-29 17:21:30 +01:00
parent 0be8b3cdf6
commit 397442a061
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,8 @@ module API
def authenticate_runner!
forbidden! unless current_runner
update_runner_info
end
def current_runner

View File

@ -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]