python/ray/serve/api.py
def shutdown() -> None:
    """Completely shut down the connected Serve instance.

    Shuts down all processes and deletes all state associated with the
    instance.
    """

    try:
        client = get_global_client()
    except RayServeException:
        logger.info(
            "Nothing to shut down. There's no Serve application "
            "running on this Ray cluster."
        )
        return

    client.shutdown()
    set_global_client(None)
Completely shut down the connected Serve instance.

    Shuts down all processes and deletes all state associated with the
    instance.
    
Completely shut down the connected Serve instance.
Shuts down all processes and deletes all state associated with the
instance.
Completely shut down the connected Serve instance . Shuts down all processes and deletes all state associated with the instance .
def shutdown() -> None:
    try:
        client = get_global_client()
    except RayServeException:
        logger.info(
            "Nothing to shut down. There's no Serve application "
            "running on this Ray cluster."
        )
        return
    client.shutdown()
    set_global_client(None)
def shutdown ( ) -> None : try : client = get_global_client ( ) except RayServeException : logger . info ( "Nothing to shut down. There's no Serve application " "running on this Ray cluster." ) return client . shutdown ( ) set_global_client ( None )
Completely shut down the connected Serve instance.
Completely shut down the connected Serve instance .
"""Completely shut down the connected Serve instance.

    Shuts down all processes and deletes all state associated with the
    instance.
    """