ray.util.scheduling_strategies.PlacementGroupSchedulingStrategy.__init__#
- PlacementGroupSchedulingStrategy.__init__(placement_group: PlacementGroup, placement_group_bundle_index: int = -1, placement_group_capture_child_tasks: bool | None = None)[source]#
Initialize a
PlacementGroupSchedulingStrategy.- Parameters:
placement_group – the placement group this actor belongs to, or None if it doesn’t belong to any group.
placement_group_bundle_index – the index of the bundle if the actor belongs to a placement group, which may be -1 to specify any available bundle.
placement_group_capture_child_tasks – Whether or not children tasks of this actor should implicitly use the same placement group as its parent. It is False by default.