From 336444a93cfab1aee729ac8134f3ee502b1fc5ab Mon Sep 17 00:00:00 2001 From: wiro Date: Fri, 21 Jun 2019 16:11:26 +0200 Subject: [PATCH] Increase number of retries and sleep for slower instances --- lib/gitlab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gitlab.py b/lib/gitlab.py index 6f4ad7e..777b3d3 100644 --- a/lib/gitlab.py +++ b/lib/gitlab.py @@ -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: @@ -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():