code golf
parent
993d9c9394
commit
eeb8784b6f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue