feat: extract train module + SQLite finetune job queue #43
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Finetune is currently a fire-and-forget SSE endpoint buried in
api.py. Replace with a proper job queue so multiple job types can be queued, monitored, and reviewed.Work
app/train/train.pywith SQLite-backed job queueid, type, model_key, status, config_json, created_at, started_at, completed_at, errorqueued → running → completed | failedapi.pyintotrain.pyPOST /api/train/jobs,GET /api/train/jobs,GET /api/train/jobs/{id}/streamAcceptance
Shipped in the Apr 19–May 4 sprint. SQLite-backed job queue, Popen subprocess, SSE log streaming, and path traversal guard on python_bin all landed in app/train/train.py.