refactor: wire controller v2 into web runtime
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user