pub async fn lock_live_successes_for_same_module(
conn: &mut PgConnection,
id: Uuid,
) -> ModelResult<Vec<LiveSuccessForModule>>Expand description
The student’s other live attempts for the row’s module that the registry already holds, locked until the caller’s transaction ends.
What another attempt has to beat to be sent, and what it replaces when it does, through
mark_pending_superseded. Includes rows already waiting on an
earlier replacement, which a better one takes over.