python/ray/serve/deployment_state.py
def check_stopped(self) -> bool:
        """Check if the actor has exited."""
        try:
            handle = ray.get_actor(
                self._actor_name, namespace=self._controller_namespace
            )
            stopped = self._check_obj_ref_ready(self._graceful_shutdown_ref)
            if stopped:
                ray.kill(handle, no_restart=True)
        except ValueError:
            stopped = True

        return stopped
Check if the actor has exited.
Check if the actor has exited.
Check if the actor has exited .
def check_stopped(self) -> bool:
        try:
            handle = ray.get_actor(
                self._actor_name, namespace=self._controller_namespace
            )
            stopped = self._check_obj_ref_ready(self._graceful_shutdown_ref)
            if stopped:
                ray.kill(handle, no_restart=True)
        except ValueError:
            stopped = True
        return stopped
def check_stopped ( self ) -> bool : try : handle = ray . get_actor ( self . _actor_name , namespace = self . _controller_namespace ) stopped = self . _check_obj_ref_ready ( self . _graceful_shutdown_ref ) if stopped : ray . kill ( handle , no_restart = True ) except ValueError : stopped = True return stopped
Check if the actor has exited.
Check if the actor has exited .
"""Check if the actor has exited."""
self