[Feature] Cancel in-progress benchmark and fine-tune jobs #9
Labels
No labels
backlog
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/avocet#9
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?
Summary
Allow users to abort a running benchmark or fine-tune job from the UI without refreshing the page.
Changes (feat/vue-label-tab)
Backend (
app/api.py)_running_procs: dictand_cancelled_jobs: settrack the live subprocess per job typerun_benchmarkandrun_finetune_endpointgenerators register/deregister theirPopenobject; emit{"type":"cancelled"}(not error) when cancelled_cancelled_jobs.discard(key)on new run start prevents stale-flag false positivesPOST /api/benchmark/cancelandPOST /api/finetune/cancel— SIGTERM → wait 3 s → SIGKILL; 404 if nothing runningTests (
tests/test_api.py)Frontend (
web/src/views/BenchmarkView.vue)runCancelled/ftCancelledrefs,cancelBenchmark()/cancelFinetune()functions⏹ Cancelledstatus in log headers; Clear buttons reset the stateResolved in
feat/vue-label-tab @
1fa5b9e