Bound sleep time in create project (#1541)

This commit is contained in:
Ross Scroggs
2022-07-15 10:35:53 -07:00
committed by GitHub
parent 3216666a94
commit ca575b267b

View File

@ -7614,7 +7614,7 @@ and accept the Terms of Service (ToS). As soon as you've accepted the ToS popup,
controlflow.system_error_exit(1, status)
if status.get('done', False):
break
sleep_time = i**2
sleep_time = min(2**i, 60)
print(f'Project still being created. Sleeping {sleep_time} seconds')
time.sleep(sleep_time)
if create_again: