Archive · documents
The correspondents live in Paperless-ngx.
Every one must be read, every night.
Paperless-ngx 2.13, 100 correspondents
The problem
The API hands the list out in pages.
- Ten per page, numbered.
- Meanwhile, the team works.
What is not changed
The archive stays as it is.
- Its API, a reading account.
- No module, no setting.
The trap
A deletion shifts the pages.
- A correspondent on page 1 disappears.
- Another one lands on no page.
What had to be written
pagination: { kind: drf-page }One line.
- Each page's count is checked.
- If it moves, the list is read again.
- A 27-line connector.
When it never stops
The run fails, it does not lie.
- The list moves again on the second read.
- The message gives both totals.
What was fixed
One gap found, one fix.
- Before: Completed, a correspondent missing.
- Now: read again, or refused (#1771).
Try it
The scenario replays locally.
Every step is published with its output.