mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-04-23 11:06:07 +02:00
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:
@@ -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())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user