fix(subscribe): stop failing sites from stalling subscription downloads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
InfinityPacer
2026-11-03 02:53:36 +08:00
committed by InfinityPacer
parent 9eaaf5f715
commit 5de950fb7c
24 changed files with 669 additions and 258 deletions

View File

@@ -678,10 +678,11 @@ def _run_site_pressure_case(
)
cooldown_calls = boundary.calls - calls_before_cooldown
cooldown_deferrals = loser.consume_subscription_site_budget_deferrals()
# 出错暂停中的站点本轮直接跳过:不发请求,也不让订阅进入等待。
error_cooldown_blocked = bool(
not cooldown_result
and cooldown_calls == 0
and cooldown_deferrals
and not cooldown_deferrals
)
error_cooldown_persisted = bool(
error_record