Commit 437d9e4e authored by Ramya Authappan's avatar Ramya Authappan

Merge branch '118453-retry-get-runners-token' into 'master'

Make runner handling more resilient

Closes #118453

See merge request gitlab-org/gitlab!22233
parents b5f6142d b91438de
......@@ -54,7 +54,7 @@ module QA
@id = this_runner[:id]
super
ensure
Service::DockerRun::GitlabRunner.new(name).remove!
end
......
......@@ -41,6 +41,14 @@ module QA
resource_web_url(api_get)
rescue ResourceNotFoundError
super
# If the group was just created the runners token might not be
# available via the API immediately.
Support::Retrier.retry_on_exception(sleep_interval: 5) do
resource = resource_web_url(api_get)
populate(:runners_token)
resource
end
end
def api_get_path
......
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