1016 B
@hledger-reports/worker
| @hledger-reports/worker |
|---|
| patch |
Schedule query-job retention through OpenWorkflow's native recurring support at 00:MM UTC daily, with minute 1–59 sampled once per worker startup. No custom timer or YAML setting is added. The stable schedule preserves administrative pauses; changing its minute reschedules the next occurrence rather than guaranteeing overdue catch-up.
Each run uses one atomic DELETE to remove up to 100 finished, standalone query records strictly older than seven days by completion time. Active, related, keyed, step/signal-bearing, scheduled and unknown work is preserved; larger backlogs can remain longer. Only aggregate deletion counts are stored by maintenance.
Existing journal, price, snapshot, legacy capture/result files and backups are untouched. This is logical SQLite retention, not secure erasure or guaranteed file shrinkage. Operators who need old job history should take a consistent backup before deploying. Restarts with a changed cron minute may postpone cleanup.