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
+25
View File
@@ -0,0 +1,25 @@
"""Single-process runtime: ControllerService owns one local coordinator."""
from __future__ import annotations
import os
bind = f"0.0.0.0:{int(os.environ.get('PORT', '7531'))}"
workers = 1
worker_class = "gthread"
threads = 4
preload_app = False
accesslog = "-"
errorlog = "-"
capture_output = True
timeout = 30
graceful_timeout = 15
def worker_exit(server, worker): # pragma: no cover - exercised by Gunicorn
try:
from wsgi import service
except Exception:
return
service.stop()