MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / _ensure_server_running

Method _ensure_server_running

camel/models/sglang_model.py:124–128  ·  view source on GitHub ↗

r"""Ensures that the server is running. If not, starts the server.

(self)

Source from the content-addressed store, hash-verified

122 raise RuntimeError(f"Failed to start SGLang server: {e}") from e
123
124 def _ensure_server_running(self) -> None:
125 r"""Ensures that the server is running. If not, starts the server."""
126 with self._lock:
127 if self.server_process is None:
128 self._start_server()
129
130 def _monitor_inactivity(self):
131 r"""Monitor whether the server process has been inactive for over 10

Callers 1

runMethod · 0.95

Calls 1

_start_serverMethod · 0.95

Tested by

no test coverage detected