Skip to content
Snippets Groups Projects
Commit 723e01d1 authored by jurgenhaas's avatar jurgenhaas
Browse files

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
No related branches found
Tags v0.1.0
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment