113 Commits

Author SHA1 Message Date
Régis Behmo
2281082cf8 feat: favicon 2024-12-19 14:55:46 +01:00
Régis Behmo
556f0bf8f3 Unable to interrupt a running server...
I'm quitting, waiting for the upstream issue to be resolved.
2024-12-19 14:51:43 +01:00
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
ceac2aaf59 better thread management and kill on reload
It's not all working yet, though...
2024-12-06 22:49:37 +01:00
Régis Behmo
a4b046db07 feat: store tutor logs in temporary files 2024-12-05 17:28:51 +01:00
Régis Behmo
bdfecd5066 chore: simplify by removing useless ajax call 2024-12-05 16:40:01 +01:00
Régis Behmo
b7ff461da2 fix: refactor tutor cli 2024-12-05 16:36:44 +01:00
Régis Behmo
2c113f5267 fix: type tests 2024-12-05 15:56:11 +01:00
Régis Behmo
34028c0e7c working prototype
Now there is a lot of TODO items remaining...
2024-12-05 15:23:46 +01:00
Régis Behmo
35554c2cc2 Working PoC of calling tutor asynchronousl
This is ugly, though, because we are calling tutor via subprocess.
Instead, we should be calling cli() in a separate thread.
2024-11-27 11:24:51 +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