Poll ETTN statuses in batches and commit per receipt #2

Merged
lauadmin merged 1 commits from feature/checkbox-ettn into main 2026-09-25 09:27:07 +00:00
Owner

Cron poll_receipts committed only at the end; with ~100 created receipts and a 1s pause between Checkbox requests it hit the arq 300s timeout every run, so status updates were rolled back and fiscalized receipts stayed "Ждёт оплаты".

Now each run polls at most 30 least-recently-checked receipts and commits after each one.

🤖 Generated with Claude Code

Cron `poll_receipts` committed only at the end; with ~100 `created` receipts and a 1s pause between Checkbox requests it hit the arq 300s timeout every run, so status updates were rolled back and fiscalized receipts stayed "Ждёт оплаты". Now each run polls at most 30 least-recently-checked receipts and commits after each one. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lauadmin added 1 commit 2026-09-25 09:26:38 +00:00
The cron poll committed only at the end; with ~100 created receipts and a 1s
pause between Checkbox requests it hit arq's 300s timeout every run, so all
status updates were rolled back and fiscalized receipts stayed "created".
Now each run polls at most 30 least-recently-checked receipts and commits
after each one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lauadmin merged commit 2b92d82693 into main 2026-09-25 09:27:07 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lauadmin/lux_fiscal#2