stopLoadProcess tears down a backend process whose load did not complete. The stop error is only logged: the load error is what the caller reports.
(client *Model, modelID string)
| 194 | // stopLoadProcess tears down a backend process whose load did not complete. |
| 195 | // The stop error is only logged: the load error is what the caller reports. |
| 196 | func stopLoadProcess(client *Model, modelID string) { |
| 197 | process := client.Process() |
| 198 | if process == nil { |
| 199 | return |
| 200 | } |
| 201 | if err := process.Stop(); err != nil { |
| 202 | xlog.Warn("failed to stop backend process after failed load", "error", err, "modelID", modelID) |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | // parallelSlotsFromOptions returns the effective n_parallel from the backend |
| 207 | // option strings ("parallel:N" / "n_parallel:N"), or "1" when unset — the |
no test coverage detected