python/ray/serve/deployment_state.py
def cleanup(self):
        """Clean up any remaining resources after the actor has exited.

        Currently, this just removes the placement group.
        """
        if not USE_PLACEMENT_GROUP:
            return

        try:
            if self._placement_group is not None:
                ray.util.remove_placement_group(self._placement_group)
        except ValueError:
            pass
Clean up any remaining resources after the actor has exited.

        Currently, this just removes the placement group.
        
Clean up any remaining resources after the actor has exited.
Currently, this just removes the placement group.
Clean up any remaining resources after the actor has exited . Currently this just removes the placement group .
def cleanup(self):
        if not USE_PLACEMENT_GROUP:
            return
        try:
            if self._placement_group is not None:
                ray.util.remove_placement_group(self._placement_group)
        except ValueError:
            pass
def cleanup ( self ) : if not USE_PLACEMENT_GROUP : return try : if self . _placement_group is not None : ray . util . remove_placement_group ( self . _placement_group ) except ValueError : pass
Clean up any remaining resources after the actor has exited.
Clean up any remaining resources after the actor has exited .
"""Clean up any remaining resources after the actor has exited.

        Currently, this just removes the placement group.
        """
self