ray.util.placement_group.PlacementGroup.ready#
- PlacementGroup.ready() ray._raylet.ObjectRef [source]#
Returns an ObjectRef to check ready status.
This API runs a small dummy task to wait for placement group creation. It is compatible to ray.get and ray.wait.
Example
import ray pg = ray.util.placement_group([{"CPU": 1}]) ray.get(pg.ready()) pg = ray.util.placement_group([{"CPU": 1}]) ray.wait([pg.ready()])