From 6cf325142e635b6fcfecdc0e55a6c97031ed392e Mon Sep 17 00:00:00 2001 From: anoracleofra-code Date: Thu, 26 Mar 2026 11:00:44 -0600 Subject: [PATCH] fix: increase wormhole readiness deadline from 8s to 20s In Docker the wormhole subprocess takes 10-15s to start (loading Plane-Alert DB, env checks, uvicorn startup). The 8s deadline was expiring before the health probe could succeed, leaving ready=false permanently even though the subprocess was healthy. --- backend/services/wormhole_supervisor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/wormhole_supervisor.py b/backend/services/wormhole_supervisor.py index a7d2d27..90c4fae 100644 --- a/backend/services/wormhole_supervisor.py +++ b/backend/services/wormhole_supervisor.py @@ -435,7 +435,7 @@ def connect_wormhole(*, reason: str = "connect") -> dict[str, Any]: proxy=str(settings.get("socks_proxy", "")), ) - deadline = time.monotonic() + 8.0 + deadline = time.monotonic() + 20.0 while time.monotonic() < deadline: if process.poll() is not None: err = f"Wormhole exited with code {process.returncode}." @@ -464,7 +464,7 @@ def connect_wormhole(*, reason: str = "connect") -> dict[str, Any]: proxy=str(settings.get("socks_proxy", "")), ) break - time.sleep(0.25) + time.sleep(0.5) return _store_state_cache(_current_runtime_state())