mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 17:45:08 +08:00
[serve] Add delete_endpoint call (#8256)
This commit is contained in:
@@ -166,6 +166,15 @@ def create_endpoint(endpoint_name, route=None, methods=["GET"]):
|
||||
[m.upper() for m in methods])
|
||||
|
||||
|
||||
@_ensure_connected
|
||||
def delete_endpoint(endpoint):
|
||||
"""Delete the given endpoint.
|
||||
|
||||
Does not delete any associated backends.
|
||||
"""
|
||||
retry_actor_failures(master_actor.delete_endpoint, endpoint)
|
||||
|
||||
|
||||
@_ensure_connected
|
||||
def set_backend_config(backend_tag, backend_config):
|
||||
"""Set a backend configuration for a backend tag
|
||||
|
||||
Reference in New Issue
Block a user