You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
healthz says ok and models_ready while the Parakeet load is starved and every job hangs at running #407
On a Mac mini server (akou 1.1.0, preset fast, models on an external USB volume), every job created after 13:22 sat at running, stage transcribe, for ever. /healthz kept answering ok: true, models_ready: true, queue_depth: 0, so no client or monitor noticed. The log shows job.created lines with no job.done after them.
Cause, confirmed on the box: a du -sh over the whole 2 TB volume was running at the same time (about 3,700 reads a second of 4.5 KB). The server's lazy Parakeet load reads the 2.4 GB encoder.weights from that volume, and that read starved behind the walker. The process sat in state U at about 1 % CPU for 4.6 minutes, and sample <pid> showed the main thread inside CreateOfflineRecognizerWrapper (sherpa-onnx.node). The moment the walker was moved to the background IO class (taskpolicy -b -p <pid>), the load finished in under 5 s.
A launchctl kickstart -k restart did not help: the new process blocked in the same load.
Why it matters
models_ready: true is reported while no recognizer exists yet (loaded: []), so a reader of /healthz cannot tell a healthy idle server from one that will hang the next job.
A job that has been running for minutes on an 8 s clip is never surfaced: no stale-job age, no degraded state, no log line.
Clients that pick a server from /healthz (the mini forwards to remotes the same way) send jobs into the hole.
Proposed fix
/healthz reports ok: false or a degraded field when a job has been running longer than N × its audio length plus the model load budget (a stale-running age), and when a model load has been in progress longer than a budget (say 60 s).
models_ready means the recognizer for the default preset is created, not that the files are on disk; or add loaded to the readiness decision.
One log line when a load passes the budget (model.load slow: 120 s, still reading encoder.weights), so the cause is visible without sample.
Evidence
Process state during the hang: UNs, 0.6 % CPU, RSS 410 MB, 3:57 elapsed; lsof showed encoder.weights (2,435,420,160 bytes) mapped.
After throttling the walker: 5 s later SNs, 41 % CPU, RSS 2.3 GB, loaded: ["parakeet-tdt-0.6b-v3-fp32"].
A later probe job on the recovered server: done in 4.0 s.
Activity