code golf

pull/6408/head
Niklas Fiekas 2020-04-16 13:20:36 +02:00
parent 993d9c9394
commit eeb8784b6f
1 changed files with 1 additions and 3 deletions

View File

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