Clean up Ray processes after cluster util exits (#3278)

This commit is contained in:
Richard Liaw
2018-11-13 13:18:12 -08:00
committed by Eric Liang
parent c3a2c7ebed
commit 97f423781b
2 changed files with 22 additions and 4 deletions
+9 -1
View File
@@ -58,7 +58,15 @@ def test_cluster():
assert node2.all_processes_alive()
g.remove_node(node2)
g.remove_node(node)
assert not any(node.any_processes_alive() for node in g.list_all_nodes())
assert not any(n.any_processes_alive() for n in [node, node2])
def test_shutdown():
g = Cluster(initialize_head=False)
node = g.add_node()
node2 = g.add_node()
g.shutdown()
assert not any(n.any_processes_alive() for n in [node, node2])
def test_internal_config(start_connected_longer_cluster):