python/ray/serve/deployment_state.py
def stop(self, graceful: bool = True) -> None:
        """Stop the replica.

        Should handle the case where the replica is already stopped.
        """
        timeout_s = self._actor.graceful_stop()
        if not graceful:
            timeout_s = 0
        self._shutdown_deadline = time.time() + timeout_s
Stop the replica.

        Should handle the case where the replica is already stopped.
        
Stop the replica.
Should handle the case where the replica is already stopped.
Stop the replica . Should handle the case where the replica is already stopped .
def stop(self, graceful: bool = True) -> None:
        timeout_s = self._actor.graceful_stop()
        if not graceful:
            timeout_s = 0
        self._shutdown_deadline = time.time() + timeout_s
def stop ( self , graceful : bool = True ) -> None : timeout_s = self . _actor . graceful_stop ( ) if not graceful : timeout_s = 0 self . _shutdown_deadline = time . time ( ) + timeout_s
Stop the replica.
Stop the replica .
"""Stop the replica.

        Should handle the case where the replica is already stopped.
        """
self
graceful
bool