Soft-fail OpenDota hero stats/matches on daily rate limits.

Keep restored cache and continue the tier so a burned runner IP cannot
block leaderboards, pro-match rotation, or streamer refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
voson
2026-07-30 23:02:35 +08:00
co-authored by Cursor
parent 0f7e7b68dd
commit f035e2c233
2 changed files with 10 additions and 3 deletions
+9 -2
View File
@@ -272,9 +272,16 @@ def run_patch_linked(*, dry_run: bool = False) -> None:
def run_daily(*, dry_run: bool = False) -> bool:
"""Return True if patch-linked fetch ran."""
run_script("fetch_hero_stats.py", dry_run=dry_run)
# Soft-fail OpenDota quota burns: keep restored cache and continue the tier.
run_script("fetch_hero_stats.py", dry_run=dry_run, soft_fail=True)
run_script("fetch_leaderboards.py", dry_run=dry_run)
run_script("fetch_hero_matches.py", "--source", "league", dry_run=dry_run)
run_script(
"fetch_hero_matches.py",
"--source",
"league",
dry_run=dry_run,
soft_fail=True,
)
run_script(
"fetch_pro_matches.py",
"--include-pubs",