python/ray/serve/client.py
def _wait_for_deployment_deleted(self, name: str, timeout_s: int = 60):
        """Waits for the named deployment 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 name not in statuses:
                break
            else:
                curr_status = statuses[name].status
                logger.debug(
                    f"Waiting for {name} to be deleted, current status: {curr_status}."
                )
            time.sleep(CLIENT_POLLING_INTERVAL_S)
        else:
            raise TimeoutError(f"Deployment {name} wasn't deleted after {timeout_s}s.")
Waits for the named deployment to be shut down and deleted.

        Raises TimeoutError if this doesn't happen before timeout_s.
        
Waits for the named deployment to be shut down and deleted.
Raises TimeoutError if this doesn't happen before timeout_s.
Waits for the named deployment to be shut down and deleted . Raises TimeoutError if this doesn ' t happen before timeout_s .
def _wait_for_deployment_deleted(self, name: str, timeout_s: int = 60):
        start = time.time()
        while time.time() - start < timeout_s:
            statuses = self.get_deployment_statuses()
            if name not in statuses:
                break
            else:
                curr_status = statuses[name].status
                logger.debug(
                    f"Waiting for {name} to be deleted, current status: {curr_status}."
                )
            time.sleep(CLIENT_POLLING_INTERVAL_S)
        else:
            raise TimeoutError(f"Deployment {name} wasn't deleted after {timeout_s}s.")
def _wait_for_deployment_deleted ( self , name : str , timeout_s : int = 60 ) : start = time . time ( ) while time . time ( ) - start < timeout_s : statuses = self . get_deployment_statuses ( ) if name not in statuses : break else : curr_status = statuses [ name ] . status logger . debug ( f"Waiting for {name} to be deleted, current status: {curr_status}." ) time . sleep ( CLIENT_POLLING_INTERVAL_S ) else : raise TimeoutError ( f"Deployment {name} wasn't deleted after {timeout_s}s." )
Waits for the named deployment to be shut down and deleted.
Waits for the named deployment to be shut down and deleted .
"""Waits for the named deployment to be shut down and deleted.

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