python/ray/serve/client.py
def _wait_for_deployments_shutdown(self, timeout_s: int = 60):
        """Waits for all deployments to be shut down and deleted.

        Raises TimeoutError if this doesn't happen before timeout_s.
        """
        start = time.time()
        while time.time() - start < timeout_s:
            statuses = self.get_deployment_statuses()
            if len(statuses) == 0:
                break
            else:
                logger.debug(
                    f"Waiting for shutdown, {len(statuses)} deployments still alive."
                )
            time.sleep(CLIENT_POLLING_INTERVAL_S)
        else:
            live_names = list(statuses.keys())
            raise TimeoutError(
                f"Shutdown didn't complete after {timeout_s}s. "
                f"Deployments still alive: {live_names}."
            )
Waits for all deployments to be shut down and deleted.

        Raises TimeoutError if this doesn't happen before timeout_s.
        
Waits for all deployments to be shut down and deleted.
Raises TimeoutError if this doesn't happen before timeout_s.
Waits for all deployments to be shut down and deleted . Raises TimeoutError if this doesn ' t happen before timeout_s .
def _wait_for_deployments_shutdown(self, timeout_s: int = 60):
        start = time.time()
        while time.time() - start < timeout_s:
            statuses = self.get_deployment_statuses()
            if len(statuses) == 0:
                break
            else:
                logger.debug(
                    f"Waiting for shutdown, {len(statuses)} deployments still alive."
                )
            time.sleep(CLIENT_POLLING_INTERVAL_S)
        else:
            live_names = list(statuses.keys())
            raise TimeoutError(
                f"Shutdown didn't complete after {timeout_s}s. "
                f"Deployments still alive: {live_names}."
            )
def _wait_for_deployments_shutdown ( self , timeout_s : int = 60 ) : start = time . time ( ) while time . time ( ) - start < timeout_s : statuses = self . get_deployment_statuses ( ) if len ( statuses ) == 0 : break else : logger . debug ( f"Waiting for shutdown, {len(statuses)} deployments still alive." ) time . sleep ( CLIENT_POLLING_INTERVAL_S ) else : live_names = list ( statuses . keys ( ) ) raise TimeoutError ( f"Shutdown didn't complete after {timeout_s}s. " f"Deployments still alive: {live_names}." )
Waits for all deployments to be shut down and deleted.
Waits for all deployments to be shut down and deleted .
"""Waits for all deployments to be shut down and deleted.

        Raises TimeoutError if this doesn't happen before timeout_s.
        """
self
timeout_s
int