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

Function test_shutdown

python/ray/tests/test_multi_node_2.py:33–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def test_shutdown():
34 g = Cluster(initialize_head=False)
35 node = g.add_node()
36 node2 = g.add_node()
37 g.shutdown()
38 assert not any(n.any_processes_alive() for n in [node, node2])
39
40
41@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

add_nodeMethod · 0.95
shutdownMethod · 0.95
ClusterClass · 0.90
any_processes_aliveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…