project-nomad/admin/app
Matt Moyles 2aa55a43ec
fix(benchmark): report run status from the queue so the double-run guard works
Benchmarks execute as a BullMQ job in the queue worker, but
/api/benchmark/status and the 409 double-run guards read the web
process's in-memory BenchmarkService, which never sees the run. Status
always read idle, and a second POST /api/benchmark/run was accepted
mid-flight and queued behind the first.

Status now comes from the queue, the one place both processes can see.
The worker publishes each stage on its job via job.updateProgress(),
and resolveBenchmarkStatus() reports the active job's stage, "starting"
for a job still queued, or the local status for a sync=true run. The
status endpoint and all three run guards read it. If the queue can't be
read they fall back to the local status, as before.

Closes #1326
2026-10-09 13:54:37 -04:00
..
controllers fix(benchmark): report run status from the queue so the double-run guard works 2026-10-09 13:54:37 -04:00
data refactor(drug-reference): make collections JSON the single source for curated data (#1130) 2026-08-04 03:38:35 +00:00
exceptions fix(Docs): documentation renderer fixes 2025-12-23 16:00:33 -08:00
jobs fix(benchmark): report run status from the queue so the double-run guard works 2026-10-09 13:54:37 -04:00
middleware fix(API): skip compression for Server-Sent Events (#798) 2026-05-20 10:16:00 -07:00
models feat(kb): per-file active toggle + collection grouping/bulk toggle (#1286) 2026-09-29 15:54:41 -07:00
services fix(benchmark): report run status from the queue so the double-run guard works 2026-10-09 13:54:37 -04:00
utils fix(benchmark): report run status from the queue so the double-run guard works 2026-10-09 13:54:37 -04:00
validators fix(gpu): detect Ollama CPU fallback on AMD and offer the right fix 2026-09-29 15:54:41 -07:00