MCPcopy
hub / github.com/PromtEngineer/localGPT / shutdown

Method shutdown

run_system.py:428–440  ·  view source on GitHub ↗

Gracefully shutdown all services.

(self)

Source from the content-addressed store, hash-verified

426 self.logger.info(" • Health check: python run_system.py --health")
427
428 def shutdown(self):
429 """Gracefully shutdown all services."""
430 if not self.running:
431 return
432
433 self.logger.info("🛑 Shutting down RAG system...")
434 self.running = False
435
436 # Stop services in reverse order
437 for service_name in reversed(list(self.processes.keys())):
438 self._stop_service(service_name)
439
440 self.logger.info("✅ All services stopped")
441
442 def _stop_service(self, service_name: str):
443 """Stop a single service."""

Callers 2

_signal_handlerMethod · 0.95
mainFunction · 0.95

Calls 1

_stop_serviceMethod · 0.95

Tested by

no test coverage detected