Move query retention beside the queue backend #78

Merged
eleith merged 1 commits from refactor/queue-retention-ownership into main 2026-11-24 05:53:11 +00:00

Move the SQLite retention operation and policy tests into packages/jobs, beside the OpenWorkflow queue client. The worker still owns the schedule and dispatches one bounded purge, returning its deleted count. Both paths share the database filename in the queue client without sharing open behavior.

The SQL and seven-day cutoff are unchanged, including eligibility, oldest-first order, and the 100-run cap. The SQLite test verifies which records survive a timestamp tie at the cap. The scheduled worker integration remains unchanged. No saved-report format change or re-preparation needed.

Independent code, readability, and test reviews completed. All 15 check stages passed on the final source: 1,117 workspace tests and 31 Chromium cases.

Move the SQLite retention operation and policy tests into `packages/jobs`, beside the OpenWorkflow queue client. The worker still owns the schedule and dispatches one bounded purge, returning its deleted count. Both paths share the database filename in the queue client without sharing open behavior. The SQL and seven-day cutoff are unchanged, including eligibility, oldest-first order, and the 100-run cap. The SQLite test verifies which records survive a timestamp tie at the cap. The scheduled worker integration remains unchanged. No saved-report format change or re-preparation needed. Independent code, readability, and test reviews completed. All 15 check stages passed on the final source: 1,117 workspace tests and 31 Chromium cases.
eleith-gitea-agent Bot added 1 commit 2026-11-24 05:48:54 +00:00
refactor(jobs): own queue retention beside the backend
ci/woodpecker/pr/jobs Pipeline was successful
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/pr/worker Pipeline was successful
ci/woodpecker/push/jobs Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/worker Pipeline was successful
5c56d5ff7e
eleith merged commit 5c56d5ff7e into main 2026-11-24 05:53:11 +00:00
eleith deleted branch refactor/queue-retention-ownership 2026-11-24 05:53:11 +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: eleith/hledger-web-reports#78