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

Method dead_processes

python/ray/_private/node.py:1775–1790  ·  view source on GitHub ↗

Return a list of the dead processes. Note that this ignores processes that have been explicitly killed, e.g., via a command like node.kill_raylet(). Returns: A list of the dead processes ignoring the ones that have been explicitly killed.

(self)

Source from the content-addressed store, hash-verified

1773 return result
1774
1775 def dead_processes(self):
1776 """Return a list of the dead processes.
1777
1778 Note that this ignores processes that have been explicitly killed,
1779 e.g., via a command like node.kill_raylet().
1780
1781 Returns:
1782 A list of the dead processes ignoring the ones that have been
1783 explicitly killed.
1784 """
1785 result = []
1786 for process_type, process_infos in self.all_processes.items():
1787 for process_info in process_infos:
1788 if process_info.process.poll() is not None:
1789 result.append((process_type, process_info.process))
1790 return result
1791
1792 def any_processes_alive(self):
1793 """Return true if any processes are still alive.

Callers 2

startFunction · 0.95

Calls 3

itemsMethod · 0.45
pollMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected