一旦フロントエンドまで接続

This commit is contained in:
misyaguziya
2026-01-09 10:00:33 +09:00
parent d157dc8b7b
commit d4a5a1ca6f
3 changed files with 24 additions and 11 deletions

View File

@@ -49,12 +49,18 @@ class Controller:
def setRun(self, run:Callable[[int, str, Any], None]) -> None:
self.run = run
def shutdown(self) -> None:
"""Shutdown controller and model (including telemetry)."""
def shutdown(self, *args, **kwargs) -> dict:
"""Shutdown controller and model (including telemetry).
Returns:
dict with status 200 and result True on success.
"""
try:
model.shutdown()
return {"status": 200, "result": True}
except Exception:
errorLogging()
return {"status": 500, "result": False}
# response functions
def connectedNetwork(self) -> None: