Files
ollama/x
Jesse Gross f09d55d0e2 mlxrunner: wait for a killed runner to exit before the scheduler loads the next model
The scheduler starts the next load as soon as Close returns. The MLX client
sent SIGINT, gave the process five seconds, then sent SIGKILL and returned
without waiting, so a runner that could not take the signal was still
exiting, with its memory still held, when the next load began. The runner
has no signal handler, so SIGINT was already a kill.

Load also started the process and recorded it without the client's mutex,
so a Close racing with a load at server shutdown could find nothing to stop
and leave the runner it missed running.

Close now kills the process and waits for it to be reaped, as the
llama-server client does. Load starts and records the process under the
mutex and refuses to start once Close has run.
2026-09-10 15:20:21 -07:00
..
2026-07-03 18:30:45 -07:00
2026-07-03 18:30:45 -07:00