[PR #9431] [MERGED] runner: defer context cancel #38832

Closed
opened 2026-04-22 23:29:35 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9431
Author: @mxyng
Created: 2/28/2025
Status: Merged
Merged: 2/28/2025
Merged by: @mxyng

Base: mainHead: mxyng/runner-context-cancel


📝 Commits (1)

  • ad22567 runner: defer context cancel

📊 Changes

2 files changed (+4 additions, -4 deletions)

View changed files

📝 runner/llamarunner/runner.go (+2 -2)
📝 runner/ollamarunner/runner.go (+2 -2)

📄 Description

defer the cancel to guarantee it runs. e.g. if the http server errors, cancel doesn't currently get called


🔄 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/9431 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 2/28/2025 **Status:** ✅ Merged **Merged:** 2/28/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/runner-context-cancel` --- ### 📝 Commits (1) - [`ad22567`](https://github.com/ollama/ollama/commit/ad22567417e6e75c992b8124d63c8729bc3d506a) runner: defer context cancel ### 📊 Changes **2 files changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `runner/llamarunner/runner.go` (+2 -2) 📝 `runner/ollamarunner/runner.go` (+2 -2) </details> ### 📄 Description defer the cancel to guarantee it runs. e.g. if the http server errors, cancel doesn't currently get called --- <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-22 23:29: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#38832