summaryrefslogtreecommitdiff
path: root/lib/api/ci/helpers/runner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/ci/helpers/runner.rb')
-rw-r--r--lib/api/ci/helpers/runner.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/ci/helpers/runner.rb b/lib/api/ci/helpers/runner.rb
index b9662b822fb..dabb6c7ab3a 100644
--- a/lib/api/ci/helpers/runner.rb
+++ b/lib/api/ci/helpers/runner.rb
@@ -42,8 +42,7 @@ module API
token = params[:token]
if token
- ::Gitlab::Database::LoadBalancing::RackMiddleware
- .stick_or_unstick(env, :runner, token)
+ ::Ci::Runner.sticking.stick_or_unstick_request(env, :runner, token)
end
strong_memoize(:current_runner) do
@@ -80,8 +79,9 @@ module API
id = params[:id]
if id
- ::Gitlab::Database::LoadBalancing::RackMiddleware
- .stick_or_unstick(env, :build, id)
+ ::Ci::Build
+ .sticking
+ .stick_or_unstick_request(env, :build, id)
end
strong_memoize(:current_job) do