Feat: Add Pipeline Cancellation Feature with Enhanced Reliability#2258
Merged
danielaskdd merged 9 commits intoHKUDS:mainfrom Oct 24, 2025
Merged
Feat: Add Pipeline Cancellation Feature with Enhanced Reliability#2258danielaskdd merged 9 commits intoHKUDS:mainfrom
danielaskdd merged 9 commits intoHKUDS:mainfrom
Conversation
• Add cancel_pipeline API endpoint • Implement PipelineCancelledException • Add cancellation checks in main loop • Handle task cancellation gracefully • Mark cancelled docs as FAILED
- Add cancelPipeline API endpoint - Add cancel button to status dialog - Update status response type - Add cancellation UI translations - Handle cancellation request states
• Change default log level to INFO • Force enable error logging output • Add lock cleanup rollback protection • Handle LLM cache persistence errors • Fix async task exception handling
• Remove separate latest message section • Combine into single pipeline messages area • Add overflow-x-hidden for better display • Change break-words to break-all • Update translations across all locales
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feat: Add Pipeline Cancellation Feature with Enhanced Reliability
Overview
This PR introduces a graceful pipeline cancellation mechanism for document processing operations, along with critical fixes for lock leakage issues that could cause resource exhaustion in production environments.
Key Features
1. Pipeline Cancellation System
2. Critical Lock Management Fixes
asyncio.shield()to ensure cleanup completes even under cancellation3. Enhanced Error Handling
UnboundLocalErrorissues by initializing variables at function start4. Frontend Changes
UI Components:
overflow-x-hiddenandbreak-allAPI Integration (
lightrag_webui/src/api/lightrag.ts):cancelPipelineAPI methodBreaking Changes
None. All changes are backwards compatible.