[PR #10819] [MERGED] sched: fix runner leak during reloading unload #75671

Closed
opened 2026-05-05 08:05:35 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10819
Author: @dhiltgen
Created: 5/22/2025
Status: Merged
Merged: 5/22/2025
Merged by: @dhiltgen

Base: mainHead: sched_harden


📝 Commits (1)

  • f268a9e sched: fix runner leak during reloading unload

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 server/sched.go (+11 -0)

📄 Description

When the same model is being reloaded rapidly with client connections being canceled before the model finishes loading, the queued unload event could cause a leak of runners by deleting a different runner from the loaded list.

Fixes #10433


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/10819 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 5/22/2025 **Status:** ✅ Merged **Merged:** 5/22/2025 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `sched_harden` --- ### 📝 Commits (1) - [`f268a9e`](https://github.com/ollama/ollama/commit/f268a9e211efd397dd90eb0c1d4bd57ad3192a19) sched: fix runner leak during reloading unload ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/sched.go` (+11 -0) </details> ### 📄 Description When the same model is being reloaded rapidly with client connections being canceled before the model finishes loading, the queued unload event could cause a leak of runners by deleting a different runner from the loaded list. Fixes #10433 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 08:05:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#75671