Skip to main content

is_waiting_for_enrolment

Function is_waiting_for_enrolment 

Source
pub fn is_waiting_for_enrolment(
    state: CreditRegistrationState,
    enrolment_check_anchor_at: Option<DateTime<Utc>>,
    no_usable_enrolment_since: Option<DateTime<Utc>>,
) -> bool
Expand description

Whether a row is waiting for an enrolment: parked without a usable one, check schedule started or not, or on its first check or a retry on its way there. Only such a row is moved by a visit or a check request, and kept waiting through a lookup that fails in transit.