class ray.util.scheduling_strategies.PlacementGroupSchedulingStrategy(placement_group: PlacementGroup, placement_group_bundle_index: int = - 1, placement_group_capture_child_tasks: Optional[bool] = None)[source]#

Bases: object

Placement group based scheduling strategy.


the placement group this actor belongs to, or None if it doesn’t belong to any group.


the index of the bundle if the actor belongs to a placement group, which may be -1 to specify any available bundle.


Whether or not children tasks of this actor should implicitly use the same placement group as its parent. It is False by default.

PublicAPI (beta): This API is in beta and may change before becoming stable.