Commit 723e01d1 authored by Jürgen Haas's avatar Jürgen Haas

GitLab still can't handle concurrent requests, let's increase number of...

GitLab still can't handle concurrent requests, let's increase number of retries and double the delay for each turn
parent ceb8e02b
......@@ -249,10 +249,11 @@ def main():
# Create issue and retry up to 3 times if that fails
issue = False
delay = random.randint(0, 200) / 100
retries = 3
retries = 30
while retries > 0:
retries -= 1
time.sleep(delay)
delay *= 2
try:
issue = git.project_issues.create(arguments, project_id=project.pid)
except Exception, e:
......
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