mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 10:17:19 +08:00
Fix broken pipe callback (#4513)
This commit is contained in:
+4
-2
@@ -573,8 +573,10 @@ class Node(object):
|
||||
check_alive (bool): Raise an exception if the process was already
|
||||
dead.
|
||||
"""
|
||||
self._kill_process_type(
|
||||
ray_constants.PROCESS_TYPE_REPORTER, check_alive=check_alive)
|
||||
# reporter is started only in PY3.
|
||||
if PY3:
|
||||
self._kill_process_type(
|
||||
ray_constants.PROCESS_TYPE_REPORTER, check_alive=check_alive)
|
||||
|
||||
def kill_dashboard(self, check_alive=True):
|
||||
"""Kill the dashboard.
|
||||
|
||||
@@ -329,7 +329,7 @@ def test_raylet_failed(ray_start_cluster):
|
||||
@pytest.mark.parametrize(
|
||||
"ray_start_cluster", [{
|
||||
"num_cpus": 8,
|
||||
"num_nodes": 4
|
||||
"num_nodes": 2
|
||||
}], indirect=True)
|
||||
def test_plasma_store_failed(ray_start_cluster):
|
||||
cluster = ray_start_cluster
|
||||
|
||||
@@ -84,6 +84,7 @@ def test_worker_plasma_store_failure(ray_start_cluster_head):
|
||||
cluster.wait_for_nodes()
|
||||
# Log monitor doesn't die for some reason
|
||||
worker.kill_log_monitor()
|
||||
worker.kill_reporter()
|
||||
worker.kill_plasma_store()
|
||||
worker.all_processes[ray_constants.PROCESS_TYPE_RAYLET][0].process.wait()
|
||||
assert not worker.any_processes_alive(), worker.live_processes()
|
||||
|
||||
Reference in New Issue
Block a user