ragflow
ragflow copied to clipboard
[Feature Request]: Objective: When a user submits a document, only add the task to the queue instead of parsing immediately, to avoid blocking the UI.
Self Checks
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (Language Policy).
- [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
- [x] Please do not modify this template :) and fill in all the required fields.
Is your feature request related to a problem?
User interaction quality degraded while parsing docs.
Describe the feature you'd like
- Task Queue Management**
- System Idle DetectionObjective: Monitor system load and service access frequency (e.g., Ragflow) to determine idle states.
- Asynchronous Document Parsing Worker
- Auto-Pause and Resume
- Task Persistence (Optional)
Describe implementation you've considered
Please to the attachment file
Documentation, adoption, use case
User submits document → Task added to queue → UI responds immediately
|
v
System monitor thread periodically checks load:
Yes → Idle state → Trigger worker → Process queue tasks
No → Set pause flag → Worker pauses
|
v
When load increases or Ragflow requests rise:
Monitor detects → Set pause flag → Worker stops processing
|
v
System becomes idle again → Monitor resets flag → Worker resumes processing remaining tasks
### Additional information
_No response_