MCPcopy Create free account
hub / github.com/nlweb-ai/NLWeb / stop

Method stop

scripts/run_tests_with_server.py:110–118  ·  view source on GitHub ↗

Stop the server

(self)

Source from the content-addressed store, hash-verified

108 return errors
109
110 def stop(self):
111 """Stop the server"""
112 self.running = False
113 if self.process:
114 self.process.terminate()
115 time.sleep(0.5)
116 if self.process.poll() is None:
117 self.process.kill()
118 print("Server stopped")
119
120def run_tests(test_path=None, verbose=True):
121 """Run pytest with specified path"""

Callers 2

startMethod · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected