python/ray/serve/deployment_state.py
def shutdown(self):
        """
        Shutdown all running replicas by notifying the controller, and leave
        it to the controller event loop to take actions afterwards.

        Once shutdown signal is received, it will also prevent any new
        deployments or replicas from being created.

        One can send multiple shutdown signals but won't effectively make any
        difference compare to calling it once.
        """

        for deployment_state in self._deployment_states.values():
            deployment_state.delete()

        # TODO(jiaodong): This might not be 100% safe since we deleted
        # everything without ensuring all shutdown goals are completed
        # yet. Need to address in follow-up PRs.
        self._kv_store.delete(CHECKPOINT_KEY)

        # TODO(jiaodong): Need to add some logic to prevent new replicas
        # from being created once shutdown signal is sent.

        Shutdown all running replicas by notifying the controller, and leave
        it to the controller event loop to take actions afterwards.

        Once shutdown signal is received, it will also prevent any new
        deployments or replicas from being created.

        One can send multiple shutdown signals but won't effectively make any
        difference compare to calling it once.
        
Shutdown all running replicas by notifying the controller, and leave
it to the controller event loop to take actions afterwards.

Once shutdown signal is received, it will also prevent any new
deployments or replicas from being created.

One can send multiple shutdown signals but won't effectively make any
difference compare to calling it once.
Shutdown all running replicas by notifying the controller and leave it to the controller event loop to take actions afterwards . Once shutdown signal is received it will also prevent any new deployments or replicas from being created . One can send multiple shutdown signals but won ' t effectively make any difference compare to calling it once .
def shutdown(self):
        for deployment_state in self._deployment_states.values():
            deployment_state.delete()
        self._kv_store.delete(CHECKPOINT_KEY)
def shutdown ( self ) : for deployment_state in self . _deployment_states . values ( ) : deployment_state . delete ( ) self . _kv_store . delete ( CHECKPOINT_KEY )
Shutdown all running replicas by notifying the controller, and leave
it to the controller event loop to take actions afterwards.
Shutdown all running replicas by notifying the controller and leave it to the controller event loop to take actions afterwards .
"""
        Shutdown all running replicas by notifying the controller, and leave
        it to the controller event loop to take actions afterwards.

        Once shutdown signal is received, it will also prevent any new
        deployments or replicas from being created.

        One can send multiple shutdown signals but won't effectively make any
        difference compare to calling it once.
        """ # TODO(jiaodong): This might not be 100% safe since we deleted # everything without ensuring all shutdown goals are completed # yet. Need to address in follow-up PRs. # TODO(jiaodong): Need to add some logic to prevent new replicas # from being created once shutdown signal is sent.
self