Commit 397442a0 authored by Matija Čupić's avatar Matija Čupić

Update runner info on all authenticated requests

parent 0be8b3cd
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment