MCPcopy
hub / github.com/ray-project/ray / on_terminate

Function on_terminate

python/ray/scripts/scripts.py:1436–1438  ·  view source on GitHub ↗
(proc)

Source from the content-addressed store, hash-verified

1434 gone_procs = set()
1435
1436 def on_terminate(proc):
1437 gone_procs.add(proc)
1438 cli_logger.print(f"{len(gone_procs)}/{total_found} stopped.", end="\r")
1439
1440 stopped, alive = psutil.wait_procs(
1441 procs_to_kill, timeout=grace_period, callback=on_terminate

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…