python/ray/serve/deployment_state.py
def graceful_stop(self) -> Duration:
        """Request the actor to exit gracefully.

        Returns the timeout after which to kill the actor.
        """
        try:
            handle = ray.get_actor(
                self._actor_name, namespace=self._controller_namespace
            )
            self._graceful_shutdown_ref = handle.prepare_for_shutdown.remote()
        except ValueError:
            pass

        return self._graceful_shutdown_timeout_s
Request the actor to exit gracefully.

        Returns the timeout after which to kill the actor.
        
Request the actor to exit gracefully.
Returns the timeout after which to kill the actor.
Request the actor to exit gracefully . Returns the timeout after which to kill the actor .
def graceful_stop(self) -> Duration:
        try:
            handle = ray.get_actor(
                self._actor_name, namespace=self._controller_namespace
            )
            self._graceful_shutdown_ref = handle.prepare_for_shutdown.remote()
        except ValueError:
            pass
        return self._graceful_shutdown_timeout_s
def graceful_stop ( self ) -> Duration : try : handle = ray . get_actor ( self . _actor_name , namespace = self . _controller_namespace ) self . _graceful_shutdown_ref = handle . prepare_for_shutdown . remote ( ) except ValueError : pass return self . _graceful_shutdown_timeout_s
Request the actor to exit gracefully.
Request the actor to exit gracefully .
"""Request the actor to exit gracefully.

        Returns the timeout after which to kill the actor.
        """
self