[PR #2401] [CLOSED] More robust shutdown logic #16148

Closed
opened 2026-04-16 05:17:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2401
Author: @dhiltgen
Created: 2/7/2024
Status: Closed

Base: mainHead: better_kill


📝 Commits (1)

  • 25ee9a7 More robust shutdown logic

📊 Changes

7 files changed (+31 additions, -1 deletions)

View changed files

📝 llm/dyn_ext_server.c (+4 -0)
📝 llm/dyn_ext_server.go (+4 -0)
📝 llm/dyn_ext_server.h (+2 -0)
📝 llm/ext_server/ext_server.cpp (+12 -0)
📝 llm/ext_server/ext_server.h (+2 -0)
📝 llm/llm.go (+2 -1)
📝 server/routes.go (+5 -0)

📄 Description

If a very long running request is in flight, or some bug causes an infinite loop this will allow a second signal to kill pending requests to ensure we can actually shutdown and not get stuck and require a kill -9 to exit


🔄 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/2401 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 2/7/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `better_kill` --- ### 📝 Commits (1) - [`25ee9a7`](https://github.com/ollama/ollama/commit/25ee9a79f97af59a77c854f9f696993f3182676b) More robust shutdown logic ### 📊 Changes **7 files changed** (+31 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `llm/dyn_ext_server.c` (+4 -0) 📝 `llm/dyn_ext_server.go` (+4 -0) 📝 `llm/dyn_ext_server.h` (+2 -0) 📝 `llm/ext_server/ext_server.cpp` (+12 -0) 📝 `llm/ext_server/ext_server.h` (+2 -0) 📝 `llm/llm.go` (+2 -1) 📝 `server/routes.go` (+5 -0) </details> ### 📄 Description If a very long running request is in flight, or some bug causes an infinite loop this will allow a second signal to kill pending requests to ensure we can actually shutdown and not get stuck and require a `kill -9` to exit --- <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-04-16 05:17:51 -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#16148