mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
feat: cancel task api to return more accurate response #6550
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hassan-ajek on GitHub (Sep 30, 2025).
Check Existing Issues
Problem Description
Calling the
POST /api/tasks/stop/{task_id}is returning the following (at least locally when there's no redis)return {"status": False, "message": f"Failed to stop task {task_id}."}Desired Solution you'd like
I suppose status is always true, and the difference is the message
Alternatives Considered
Additional Context
From the chat UI upon sending a prompt and after starting to get tokens in the assistant message, when clicking
Stopbutton calls this API and noticed Failed to stop task message with status false.@tjbck commented on GitHub (Oct 2, 2025):
Addressed in dev!