mirror of
https://github.com/wassname/ray.git
synced 2026-07-03 06:02:48 +08:00
Changes where actor resources are assigned (#4323)
This commit is contained in:
committed by
Robert Nishihara
parent
01699ce4ea
commit
11580fb7dc
@@ -139,8 +139,11 @@ def test_actor_broadcast(ray_start_cluster_with_resource):
|
||||
pass
|
||||
|
||||
actors = [
|
||||
Actor._remote(args=[], kwargs={}, resources={str(i % num_nodes): 1})
|
||||
for i in range(100)
|
||||
Actor._remote(
|
||||
args=[],
|
||||
kwargs={},
|
||||
num_cpus=0.01,
|
||||
resources={str(i % num_nodes): 1}) for i in range(100)
|
||||
]
|
||||
|
||||
# Wait for the actors to start up.
|
||||
|
||||
Reference in New Issue
Block a user