Skip to content

Commit 966a41e

Browse files
committed
Tune the flaky pr job rerun workflow
1 parent d9fba53 commit 966a41e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/scripts/rerun-flaky-pr-jobs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from pathlib import Path
1717

1818
LOOKBACK_HOURS = 2
19-
MAX_FAILED_JOBS_PER_WORKFLOW_RUN = 2
19+
MAX_FAILED_JOBS_PER_WORKFLOW_RUN = 5
2020
MAX_RERUN_ATTEMPTS = 2
2121

2222

@@ -36,7 +36,7 @@ def main() -> None:
3636
continue
3737

3838
rerun_attempts = run["run_attempt"] - 1
39-
if rerun_attempts > MAX_RERUN_ATTEMPTS:
39+
if rerun_attempts >= MAX_RERUN_ATTEMPTS:
4040
processed_runs.append(
4141
f"Skipped {format_run(run)}: already rerun {rerun_attempts} times."
4242
)

0 commit comments

Comments
 (0)