MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / _restore_cluster_inference

Function _restore_cluster_inference

e2e/python/test_inference_routing.py:119–132  ·  view source on GitHub ↗
(
    inference_client: InferenceRouteClient,
    previous: ClusterInferenceConfig | None,
)

Source from the content-addressed store, hash-verified

117
118
119def _restore_cluster_inference(
120 inference_client: InferenceRouteClient,
121 previous: ClusterInferenceConfig | None,
122) -> None:
123 if previous is None:
124 return
125
126 inference_client.set_cluster(
127 provider_name=previous.provider_name,
128 model_id=previous.model_id,
129 # Teardown restores prior shared state as-is, even if the previous
130 # route is intentionally unreachable or no longer verifiable.
131 no_verify=True,
132 )
133
134
135@contextmanager

Callers 1

managed_openai_routeFunction · 0.85

Calls 1

set_clusterMethod · 0.80

Tested by

no test coverage detected