feat: add dual-condition stall detection and quiet accounting degradation

This commit is contained in:
2026-07-21 00:43:39 -04:00
parent 63f2cc294e
commit 0e22fcf433
3 changed files with 323 additions and 15 deletions
+8
View File
@@ -44,3 +44,11 @@ class QuotaGate:
raise
except Exception as exc:
raise GovernanceBackendError(f"限流后端故障(mark_progress): {exc}") from exc
async def progress_age_s(self) -> float:
try:
return await self._limiter.progress_age_s()
except GovernanceBackendError:
raise
except Exception as exc:
raise GovernanceBackendError(f"限流后端故障(progress_age_s): {exc}") from exc