MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / stop

Method stop

smallthinker/tools/server/tests/utils.py:244–250  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

242 raise TimeoutError(f"Server did not start within {timeout_seconds} seconds")
243
244 def stop(self) -> None:
245 if self in server_instances:
246 server_instances.remove(self)
247 if self.process:
248 print(f"Stopping server with pid={self.process.pid}")
249 self.process.kill()
250 self.process = None
251
252 def make_request(
253 self,

Callers 6

test_server_slotsFunction · 0.45
test_no_webuiFunction · 0.45
stopFunction · 0.45

Calls 1

printFunction · 0.50

Tested by 5

test_server_slotsFunction · 0.36
test_no_webuiFunction · 0.36