pub async fn claim_unnotified(
conn: &mut PgConnection,
scope: &RegistrationScope,
limit: i64,
) -> ModelResult<Vec<StudentNotificationToQueue>>Expand description
Claims the rows owed a mail, locking them until the caller’s transaction ends, so callers must
pass a transaction. Never claims cancelled, blocked or any failure state: those get
nothing.