MCPcopy Create free account
hub / github.com/StarsTom/mobileCodexHelper / stack_is_stopped

Function stack_is_stopped

mobile_codex_control.py:879–884  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

877
878
879def stack_is_stopped() -> bool:
880 if is_port_open(APP_PORT, timeout=0.4) or is_port_open(PROXY_PORT, timeout=0.4):
881 return False
882 app_ok, _ = http_health(APP_HEALTH_URL, timeout=0.8)
883 proxy_ok, _ = http_health(PROXY_HEALTH_URL, timeout=0.8)
884 return not app_ok and not proxy_ok
885
886
887def wait_for_remote_reachable(timeout: float = 8.0) -> bool:

Callers

nothing calls this directly

Calls 2

is_port_openFunction · 0.85
http_healthFunction · 0.85

Tested by

no test coverage detected