fix: symmetrise REST 429 path with explicit return after _record_429

This commit is contained in:
Bernd (Hermes)
2026-08-01 21:19:24 +02:00
parent 2a7fade341
commit 73638fd565
2 changed files with 65 additions and 0 deletions
+2
View File
@@ -1137,6 +1137,7 @@ class PulseController:
error_str = str(e).lower()
if "429" in error_str or "too many requests" in error_str:
self._record_429()
return # P1: 429 → stop here, symmetric with DDP path
logger.info("[pulse] _pulse_tick REST setStatus failed: %s", e)
else:
logger.debug(
@@ -1203,6 +1204,7 @@ class PulseController:
error_str = str(e).lower()
if "429" in error_str or "too many requests" in error_str:
self._record_429()
return # P1: 429 → stop here, symmetric with DDP path
logger.info("[pulse] _pulse_tick_async REST setStatus failed: %s", e)
else:
logger.debug(