Skip to content

Conversation

@mcsantiago
Copy link

  • Make /api/scan/now return 202 and start background queue processing
  • Expose queueLength and currentDocument via /api/processing-status
  • Treat any pending processing_status row as active (not 30s window)
  • Fix early-return branches to reply with 4xx instead of hanging

- Make /api/scan/now return 202 and start background queue processing
- Expose queueLength and currentDocument via /api/processing-status
- Treat any pending processing_status row as active (not 30s window)
- Fix early-return branches to reply with 4xx instead of hanging
- Remove blocking Promise.all call that fetched all documents/metadata
- Move heavy API calls (getTags, getAllDocuments, listCorrespondents, etc) to background processQueue
- Add comprehensive logging throughout scan/queue/document processing pipeline
- Ensure /api/scan/now returns 202 immediately without waiting for document fetching
- ProcessQueue now handles document fetching when queue is empty
@clusterzx
Copy link
Owner

This pull request has been marked as stale due to inactivity. Please update it to keep it open.

@clusterzx clusterzx added the stale label Sep 1, 2025
@clusterzx
Copy link
Owner

This pull request has been closed due to lack of response.

@clusterzx clusterzx closed this Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants