mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 05:16:30 +08:00
[serve] Add delete_backend call (#8252)
This commit is contained in:
@@ -240,6 +240,15 @@ def create_backend(func_or_class,
|
||||
backend_config, func_or_class, actor_init_args)
|
||||
|
||||
|
||||
@_ensure_connected
|
||||
def delete_backend(backend_tag):
|
||||
"""Delete the given backend.
|
||||
|
||||
The backend must not currently be used by any endpoints.
|
||||
"""
|
||||
retry_actor_failures(master_actor.delete_backend, backend_tag)
|
||||
|
||||
|
||||
@_ensure_connected
|
||||
def set_traffic(endpoint_name, traffic_policy_dictionary):
|
||||
"""Associate a service endpoint with traffic policy.
|
||||
|
||||
Reference in New Issue
Block a user