"tests/serve/vscode:/vscode.git/clone" did not exist on "f95ba894a61fdf8c52d16c3894f1f50f34b59383"
Unverified Commit 309d7aa4 authored by Chauncey's avatar Chauncey Committed by GitHub
Browse files

[P/D] MultiConnector supports shutdown (#24425)


Signed-off-by: default avatarchaunceyjiang <chaunceyjiang@gmail.com>
parent b4a01aaf
...@@ -88,6 +88,18 @@ class MultiConnector(KVConnectorBase_V1): ...@@ -88,6 +88,18 @@ class MultiConnector(KVConnectorBase_V1):
for c in self._connectors: for c in self._connectors:
c.clear_connector_metadata() c.clear_connector_metadata()
def shutdown(self):
exception: Optional[Exception] = None
for c in self._connectors:
try:
c.shutdown()
except Exception as e:
logger.exception("Exception during connector %s shutdown.",
c.__class__.__name__)
exception = e
if exception:
raise exception
# ============================== # ==============================
# Worker-side methods # Worker-side methods
# ============================== # ==============================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment