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

Method sigterm_handler

python/ray/_private/node.py:533–535  ·  view source on GitHub ↗
(signum, frame)

Source from the content-addressed store, hash-verified

531 # In this case, we want to exit with an error code (1) after
532 # cleaning up child processes.
533 def sigterm_handler(signum, frame):
534 self.kill_all_processes(check_alive=False, allow_graceful=True)
535 sys.exit(1)
536
537 ray._private.utils.set_sigterm_handler(sigterm_handler)
538

Callers

nothing calls this directly

Calls 2

kill_all_processesMethod · 0.95
exitMethod · 0.45

Tested by

no test coverage detected