Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/runner.rb')
-rw-r--r--lib/api/runner.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb
index 4c9db2c8716..3d691469fe6 100644
--- a/lib/api/runner.rb
+++ b/lib/api/runner.rb
@@ -83,6 +83,8 @@ module API
return no_content!
end
+ Gitlab::Database::LoadBalancing::Session.current.use_primary!
+
new_update = current_runner.ensure_runner_queue_value
result = ::Ci::RegisterJobService.new(current_runner).execute