mirror of
https://github.com/wassname/ray.git
synced 2026-09-12 12:51:15 +08:00
Move global state API out of global_state object. (#4857)
This commit is contained in:
committed by
Philipp Moritz
parent
ea8d7b4dc0
commit
6703519144
@@ -14,7 +14,7 @@ if __name__ == "__main__":
|
||||
|
||||
# Wait for all 4 nodes to join the cluster.
|
||||
while True:
|
||||
num_nodes = len(ray.global_state.client_table())
|
||||
num_nodes = len(ray.nodes())
|
||||
if num_nodes < 4:
|
||||
print("{} nodes have joined so far. Waiting for more."
|
||||
.format(num_nodes))
|
||||
|
||||
Reference in New Issue
Block a user