1
0
Fork 0
mirror of https://github.com/vale981/ray synced 2025-03-14 15:16:38 -04:00
ray/ci/regression_test/rllib_stress_tests/wait_cluster.py

11 lines
219 B
Python
Raw Normal View History

import ray
import time
ray.init(address="auto")
curr_nodes = 0
while not curr_nodes > 8:
print("Waiting for more nodes to come up: {}/{}".format(curr_nodes, 8))
curr_nodes = len(ray.nodes())
time.sleep(5)