ragflow icon indicating copy to clipboard operation
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.

Open yeungtuzi opened this issue 9 months ago • 0 comments

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

  1. Task Queue Management**
  2. System Idle DetectionObjective: Monitor system load and service access frequency (e.g., Ragflow) to determine idle states.
  3. Asynchronous Document Parsing Worker
  4. Auto-Pause and Resume
  5. Task Persistence (Optional)

Implementation Plan.md

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_

yeungtuzi avatar Mar 16 '25 08:03 yeungtuzi