fix(k1): stabilize live recovery and media admission
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user