109 Commits

Author SHA1 Message Date
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