Module prune_timer

Module prune_timer 

Source
Expand description

Hourly SQLite + backup-file hygiene sweep; idempotent steps, kill-safe at any tick.

ConstantsΒ§

BACKUP_FILENAME_PREFIX πŸ”’
BACKUP_RETENTION_DAYS πŸ”’
FINISHED_ROLLOUTS_RETENTION_HOURS πŸ”’
Operator’s 60-day-back release investigation window.
TICK_INTERVAL πŸ”’
TOKEN_REPLAY_RETENTION_HOURS πŸ”’

FunctionsΒ§

prune_backup_files πŸ”’
Per-file delete errors are logged + skipped; enumeration errors propagate.
spawn
db_path = None skips the filesystem backup sweep (in-memory deployments).
try_prune πŸ”’
On Err logs a warn and returns 0 so the sweep continues.