P-041b: DDP-Stabilität + Puls-Cache-Lockerung + PULSE_INTERVAL_S=2.5
DDPFirstSender: - H1: connected-Check VOR Future — connected=False → sofort REST-Fallback - H2: DDP_TIMEOUT_S 1.5s → 3.0s (+0.5s Buffer = 3.5s total) - ddp_healthy State Machine: True nach Erfolg, False nach 3 Fehlern - E4: Nach 3× 429 trotz DDP → DDP untrusted, REST-only - H3 Watchdog: is_ddp_healthy() prüft Alter (<60s) Mediator: - PULSE_INTERVAL_S 5.0s → 2.5s (Pulsieren sichtbar) - 3-Schichten-Cache: P3/P4+ddp_healthy→kein Cache, P3/P4+!ddp_healthy→Cache, P1/P2→Cache - E3: pulse_lock serialisiert Pulse-Ticks (max 3s block) - E1: DDP-Fail-Mid-Pulse → Reconciliation sendet REST-Call - E5: Reconciliation-Skip prüft (last_phase, last_status) Adapter: - H3 Watchdog: Reader-Liveness, Frame-Timeout >60s, Health-Ping alle 60s Tests: 27 neue Tests (test_p041b_ddp_stability.py), 111 total grün
This commit is contained in:
@@ -270,10 +270,10 @@ class TestPulseTimerLifecycle:
|
||||
engine._mediator._pulse_toggle = False
|
||||
assert engine.get_visible_status() == "online"
|
||||
|
||||
def test_pulse_interval_is_5_seconds(self):
|
||||
"""PULSE_INTERVAL_S = 5.0 (P-039: 3.0→5.0 für 429-Reduktion)."""
|
||||
def test_pulse_interval_is_2_5_seconds(self):
|
||||
"""PULSE_INTERVAL_S = 2.5 (P-041b: 5.0→2.5 für sichtbares Pulsieren)."""
|
||||
from plugin.archivar.presence_engine import _Mediator
|
||||
assert _Mediator.PULSE_INTERVAL_S == 5.0
|
||||
assert _Mediator.PULSE_INTERVAL_S == 2.5
|
||||
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user