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:
+9
-2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user