ray.util.placement_group.PlacementGroup#

class ray.util.placement_group.PlacementGroup(id: ray._raylet.PlacementGroupID, bundle_cache: List[Dict] | None = None)[source]#

A handle to a placement group.

Methods

ready

Returns an ObjectRef to check ready status.

wait

Wait for the placement group to be ready within the specified time.

Attributes

bundle_count

bundle_specs

Return bundles belonging to this placement group.

is_empty