Skip to main content

Module retention_sweep

Module retention_sweep 

Source
Expand description

The retention-sweep phase: the call log’s 90-day window and the expired linking tokens.

Bounded per iteration and run hourly, so the first sweep after the window opens clears a backlog over several hours instead of in one statement that locks every credit_registration_events row referencing it.

Constants§

SWEEP_LIMIT 🔒
How much one iteration removes from each table.

Functions§

run