python/ray/serve/deployment_state.py
def update(self):
        """Updates the state of all deployments to match their goal state."""
        deleted_tags = []
        for deployment_name, deployment_state in self._deployment_states.items():
            deleted = deployment_state.update()
            if deleted:
                deleted_tags.append(deployment_name)
                deployment_info = deployment_state.target_info
                deployment_info.end_time_ms = int(time.time() * 1000)
                if len(self._deleted_deployment_metadata) > MAX_NUM_DELETED_DEPLOYMENTS:
                    self._deleted_deployment_metadata.popitem(last=False)
                self._deleted_deployment_metadata[deployment_name] = deployment_info

        for tag in deleted_tags:
            del self._deployment_states[tag]
Updates the state of all deployments to match their goal state.
Updates the state of all deployments to match their goal state.
Updates the state of all deployments to match their goal state .
def update(self):
        deleted_tags = []
        for deployment_name, deployment_state in self._deployment_states.items():
            deleted = deployment_state.update()
            if deleted:
                deleted_tags.append(deployment_name)
                deployment_info = deployment_state.target_info
                deployment_info.end_time_ms = int(time.time() * 1000)
                if len(self._deleted_deployment_metadata) > MAX_NUM_DELETED_DEPLOYMENTS:
                    self._deleted_deployment_metadata.popitem(last=False)
                self._deleted_deployment_metadata[deployment_name] = deployment_info
        for tag in deleted_tags:
            del self._deployment_states[tag]
def update ( self ) : deleted_tags = [ ] for deployment_name , deployment_state in self . _deployment_states . items ( ) : deleted = deployment_state . update ( ) if deleted : deleted_tags . append ( deployment_name ) deployment_info = deployment_state . target_info deployment_info . end_time_ms = int ( time . time ( ) * 1000 ) if len ( self . _deleted_deployment_metadata ) > MAX_NUM_DELETED_DEPLOYMENTS : self . _deleted_deployment_metadata . popitem ( last = False ) self . _deleted_deployment_metadata [ deployment_name ] = deployment_info for tag in deleted_tags : del self . _deployment_states [ tag ]
Updates the state of all deployments to match their goal state.
Updates the state of all deployments to match their goal state .
"""Updates the state of all deployments to match their goal state."""
self