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.
This commit is contained in:
anoracleofra-code
2026-03-26 11:00:44 -06:00
parent 81c90a9faf
commit 6cf325142e
+2 -2
View File
@@ -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())