From 3216666a94a388912c41973baab357fe0be80a66 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 15 Jul 2022 11:08:36 -0400 Subject: [PATCH] retry project creation status check 10 times instead of 5 --- src/gam/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 4ab0d64f..23e5d356 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -7555,7 +7555,7 @@ def doCreateProject(): create_operation = gapi.call(crm.projects(), 'create', body=body) operation_name = create_operation['name'] time.sleep(8) # Google recommends always waiting at least 5 seconds - for i in range(1, 5): + for i in range(1, 10): print('Checking project status...') status = gapi.call(crm.operations(), 'get', name=operation_name) if 'error' in status: