cap CI backoff at 30s

pull/6413/head
Thibault Duplessis 2020-04-15 11:17:35 -06:00
parent 339f04dcb1
commit f4fa421187
1 changed files with 2 additions and 2 deletions

View File

@ -204,8 +204,8 @@ def find_workflow_run(repo, session, workflow_url, wanted_commits):
print(f"Waiting {backoff}s for pending workflow run ...")
time.sleep(backoff)
backoff *= 2
if backoff > 60:
backoff = 60
if backoff > 30:
backoff = 30
update_workflow_run_db(db, session, workflow_url)
continue