MCPcopy
hub / github.com/encode/uvicorn / is_alive

Method is_alive

uvicorn/supervisors/multiprocess.py:66–70  ·  view source on GitHub ↗
(self, timeout: float = 5)

Source from the content-addressed store, hash-verified

64 return self.real_target(sockets)
65
66 def is_alive(self, timeout: float = 5) -> bool:
67 if not self.process.is_alive():
68 return False # pragma: full coverage
69
70 return self.ping(timeout)
71
72 def start(self) -> None:
73 self.process.start()

Callers 2

keep_subprocess_aliveMethod · 0.95

Calls 1

pingMethod · 0.95

Tested by 1