refactor: wire controller v2 into web runtime

This commit is contained in:
Media
2026-08-06 18:58:05 -05:00
parent 3ee7f94d72
commit 4e185b2e1c
5 changed files with 557 additions and 883 deletions
+22
View File
@@ -0,0 +1,22 @@
"""Production WSGI entry point and Controller service lifecycle owner."""
from __future__ import annotations
import atexit
import logging
from app import create_app
from controller.config import load_config
from controller.service import ControllerService
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s %(levelname)s %(name)s: %(message)s",
)
config = load_config()
service = ControllerService(config)
application = create_app(config, service)
service.start()
atexit.register(service.stop)