5 Commits

Author SHA1 Message Date
Régis Behmo
0565781c15 wip: attempt to replace websockets by SSE
Websockets were unnecessary, as we only need 1-way communication.
Instead, we switched to server-sent events. But there are a couple of
problems:

1. We still can't stop the server while a websocket connection is open
2. SSE make it difficult to format messages

So this is not a big win for now...
2024-12-18 12:29:19 +01:00
Régis Behmo
a2e3018de4 fix: working thread API
There is always a single thread running at any time, thanks to the
TutorCliPool.
2024-12-07 12:30:13 +01:00
Régis Behmo
bdfecd5066 chore: simplify by removing useless ajax call 2024-12-05 16:40:01 +01:00
Régis Behmo
ee8c9c4362 replace fastapi by Quart
FastAPI is mostly uvicorn+starlette. As such, the documentation is
spread over multiple places. Also, pydantic parsing of arguments is a
pain to work with. Since we don't need powerful performance, we switch
to Quart. Quart is preferred over Flask because of its async
capabilities, which we need for log streaming in websockets.

In progress: execute tutor commands and stream logs.
2024-11-21 18:06:05 +01:00
Régis Behmo
46222154da 🌅 2024-11-20 10:38:12 +01:00