Skip to main content

seed_states_course

Function seed_states_course 

Source
async fn seed_states_course(
    conn: &mut PgConnection,
    app_config: &ApplicationConfiguration,
    org: Uuid,
    teacher_user_id: Uuid,
    students: &LinkedStudents,
) -> Result<()>
Expand description

Every registration state, and every error code, as a frozen row.

An account holds one completion per module, so the rows are spread over a grid of holders and modules. The modules are paused because every phase’s claim query skips paused modules; otherwise the workers in the test deployment would walk these onwards seconds after the seed finished.