Skip to main content

claim_enrolment_checks

Function claim_enrolment_checks 

Source
pub async fn claim_enrolment_checks(
    conn: &mut PgConnection,
    ids: &[Uuid],
) -> ModelResult<()>
Expand description

Keeps parked rows out of every claim while a lookup for them is out, as resolving_enrolment does for a row on its first resolve. The answer’s transition ends the claim; one a worker died holding expires after RESOLVING_RECOVERY_GRACE. A no-op for a row in any other state.