Skip to content

Commit

Permalink
Increase number of retries and sleep for slower instances
Browse files Browse the repository at this point in the history
  • Loading branch information
wiro committed Jun 21, 2019
1 parent c693476 commit 336444a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def project_export(self, project_path):
r = self.__api_export(url_project_path)
if ((float(r.status_code) >= 200) and (float(r.status_code) < 300)):
# Api good, check for status
max_tries = 20
max_tries = 30
s = ""
status_export = False
while max_tries != 0:
Expand Down Expand Up @@ -156,7 +156,7 @@ def project_export(self, project_path):
break

# Wait litle bit
time.sleep(1)
time.sleep(2)

if status_export:
if "_links" in json.keys():
Expand Down

0 comments on commit 336444a

Please sign in to comment.