Stores: sending document copies has no time budget, so a slow store holds the scheduler pass before webhooks and syncs #1172

Closed
opened 2026-10-31 03:04:37 +00:00 by tiagoagueda · 0 comments
Owner

archiving.send_pending sends every pending document copy in one scheduler pass. With postulo-paperless waiting up to 20 s for each consumption, fifty documents hold the pass for minutes before webhooks and syncs run.

What would change

Give archiving.send_pending the time budget the webhooks already have: stop starting copies once 60 s have gone and leave the rest to the next pass.

Accessibility

None.

The whole finding, with its measurements and decisions, is postulo/postulo-paperless#27.


Found by the efficiency and reliability audit of 2026-10-30 (finding PR9; index postulo/postulo#1108). Checked against main at daee30b15 (2026-10-30).

`archiving.send_pending` sends every pending document copy in one scheduler pass. With postulo-paperless waiting up to 20 s for each consumption, fifty documents hold the pass for minutes before webhooks and syncs run. ## What would change Give `archiving.send_pending` the time budget the webhooks already have: stop starting copies once 60 s have gone and leave the rest to the next pass. ## Accessibility None. The whole finding, with its measurements and decisions, is postulo/postulo-paperless#27. --- Found by the efficiency and reliability audit of 2026-10-30 (finding PR9; index postulo/postulo#1108). Checked against `main` at `daee30b15` (2026-10-30).
tiagoagueda added this to the 0.6.0 milestone 2026-10-31 03:04:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Postulo/postulo#1172
No description provided.