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

Function _cluster_config_lock

e2e/python/test_inference_routing.py:136–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135@contextmanager
136def _cluster_config_lock() -> Iterator[None]:
137 with open(_INFERENCE_CONFIG_LOCK, "a+", encoding="utf-8") as lock_file:
138 fcntl.flock(lock_file.fileno(), fcntl.LOCK_EX)
139 try:
140 yield
141 finally:
142 fcntl.flock(lock_file.fileno(), fcntl.LOCK_UN)
143
144
145@pytest.fixture

Callers 1

managed_openai_routeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected