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)
| 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. |
no test coverage detected