"""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()