You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The monitoring backend currently relies on wsgiref.simple_server.make_server (in autoweave/monitoring/web.py) to serve the UI and the API. wsgiref is a built-in Python module intended strictly for local development and testing; it is single-threaded, blocks on network I/O, and cannot handle concurrent connections efficiently.
Proposal
Migrate the backend from a raw WSGI wsgiref implementation to a modern, production-grade ASGI framework (like FastAPI running on Uvicorn).
Acceptance Criteria
Refactor autoweave/monitoring/web.py to use FastAPI.
Update the CLI entrypoint to launch via Uvicorn.
Ensure backwards compatibility with the existing /api/state and /api/run endpoints.
Description
The monitoring backend currently relies on
wsgiref.simple_server.make_server(inautoweave/monitoring/web.py) to serve the UI and the API.wsgirefis a built-in Python module intended strictly for local development and testing; it is single-threaded, blocks on network I/O, and cannot handle concurrent connections efficiently.Proposal
Migrate the backend from a raw WSGI
wsgirefimplementation to a modern, production-grade ASGI framework (like FastAPI running on Uvicorn).Acceptance Criteria
autoweave/monitoring/web.pyto use FastAPI./api/stateand/api/runendpoints.