mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 21:01:36 +00:00
retry project creation status check 10 times instead of 5
This commit is contained in:
@@ -7555,7 +7555,7 @@ def doCreateProject():
|
|||||||
create_operation = gapi.call(crm.projects(), 'create', body=body)
|
create_operation = gapi.call(crm.projects(), 'create', body=body)
|
||||||
operation_name = create_operation['name']
|
operation_name = create_operation['name']
|
||||||
time.sleep(8) # Google recommends always waiting at least 5 seconds
|
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...')
|
print('Checking project status...')
|
||||||
status = gapi.call(crm.operations(), 'get', name=operation_name)
|
status = gapi.call(crm.operations(), 'get', name=operation_name)
|
||||||
if 'error' in status:
|
if 'error' in status:
|
||||||
|
|||||||
Reference in New Issue
Block a user