A cloud account throttled (429 / rate-limit) is amber RATE LIMITED, not red OFFLINE

2026-10-25: RESI showed OFFLINE 15 times during services while the stream was fine: Resi's cloud was
rate-limiting the account Companion's resi-studio-cues (player every 3 s, cues every 5 s) shares with
ProdDash's Resi cues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 11:25:29 -04:00
co-authored by Claude Opus 5.5
parent c471ac2c92
commit 0da1c20a17
3 changed files with 13 additions and 1 deletions
+4
View File
@@ -230,6 +230,10 @@ def conn_result(snap, label, now, service_only=False):
return Result(OK)
if cat == "warning":
return Result(WARN, short_reason(c.get("message"), "WARNING"), service_only=service_only)
if cat == "error" and re.search(r"\b429\b|rate.?limit", c.get("message") or "", re.I):
# A cloud service throttling the account (Resi, 2026-10-25: "rate-limiting this account (429)" every few
# minutes, Companion and ProdDash share it): the device itself is fine, so amber, not OFFLINE.
return Result(WARN, "RATE LIMITED", service_only=service_only)
if cat == "error":
return Result(ERR, short_reason(c.get("message"), "OFFLINE"), service_only=service_only)
return Result(WARN, "STARTING", service_only=service_only)