SQLite WAL checkpoints under cron workloads
· IndexWhen a background daemon holds a long-lived reader transaction against a WAL-mode SQLite file, passive checkpoints cannot reclaim old frames and the -wal file grows steadily.
Always set an explicit busy_timeout on short-lived maintenance scripts and open read-only queries with ?mode=ro so readers finish promptly.
sqlite3 -readonly /var/lib/app/state.db "PRAGMA wal_checkpoint(PASSIVE);"