Skip to main content

run

pub(crate) async fn run(pool: &PgPool) -> CreditRegistrationResult<Counts>
Expand description

The call log’s 90-day window, the enrolment check log’s own longer one, 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.