fix(k1): stabilize live recovery and media admission

This commit is contained in:
DCCONSTRUCTIONS
2026-08-22 00:03:01 +03:00
parent 7217244886
commit eaad9deda1
29 changed files with 1645 additions and 199 deletions
+4 -1
View File
@@ -394,7 +394,10 @@ def _wait_phase(
session: InteractiveApplicationControlSession,
expected: str,
) -> dict[str, object]:
deadline = time.monotonic() + 2.0
# FakeExecutor may use its full two-second checkpoint timeout before the
# worker publishes the terminal state. Keep the observer deadline strictly
# larger so this helper does not race the transition it is asserting.
deadline = time.monotonic() + 3.0
while time.monotonic() < deadline:
snapshot = session.snapshot()
if snapshot["state"] == expected: