Skip to main content

reset_for_resubmission

Function reset_for_resubmission 

Source
pub async fn reset_for_resubmission(
    conn: &mut PgConnection,
    id: Uuid,
) -> ModelResult<i32>
Expand description

Forgets a submission Suotar says never landed, so the row resolves its enrolment and imports again from scratch, and returns how many times that has now happened.

Also restarts the retry window and the verify count: the resend is new work, and the old submission’s history would expire it or flag it at once.