[serve] Add delete_backend call (#8252)

This commit is contained in:
Edward Oakes
2020-04-30 13:10:39 -05:00
committed by GitHub
parent c593fb09b7
commit 43be73e4cf
6 changed files with 141 additions and 23 deletions
+9
View File
@@ -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.