Expand description
Writes to a row’s fields other than its state, which only transition
writes: the frozen payload, what the study registry answered, the schedule, the counters and the flags.
Structs§
- Payload
Snapshot - Frozen copy of what we are about to submit. Written once, before the row leaves
checking_enrolment: a later regrade must not alter a submitted row.
Functions§
- increment_
submit_ retry_ count - increment_
verify_ attempt_ counts - Counts one verify poll for every row of a batch and returns each row’s new count, which sets the backoff the poll’s answer is scheduled by.
- make_
due_ now_ batch - Makes rows claimable again now, whatever backoff parked them. A row waiting for an enrolment
check has its check marked as
enrolment_check_source: who asked for it. - mark_
improvement_ checked - Records that the grade-improvement scan looked at this accepted attempt against a completion in the given revision and found nothing better.
- mark_
partially_ registered - Notes that verify saw only the assessment item attainment, keeping the first sighting, and returns when that was.
- mark_
pending_ superseded - Marks a registered row as being replaced by
superseded_by_id, a later attempt with a better grade, of the same completion or another, which takes over the row’s slot inuq_credit_registrations_person_module. - mark_
superseded - Points an old attempt at the newer one that replaced it. The old row keeps its state and
terminal_at: it really was registered. - requeue_
retryable_ now - Makes every due-later
failed_retryablerow due now; returns how many. The button pressed once the study registry says an outage is over. - reset_
for_ resubmission - 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.
- restamp_
resolving_ enrolment - Restarts the recovery grace of rows waiting out an enrolment lookup in
resolving_enrolment, which runs fromstate_entered_at, for a split batch whose later halves are still to be sent. - restamp_
submitting - Restamps
submitted_aton rows stillsubmitting, for an import that sends them again after splitting a refused batch: the precondition sweep times a lost submission from this stamp, and must not condemn a row still waiting its turn in the same iteration. - schedule_
next_ attempt - Defers when the pipeline may next claim this row; the delay is the caller’s policy.
- schedule_
next_ attempts schedule_next_attemptfor a whole batch, each row with its own time.- set_
needs_ admin_ attention - set_
payload_ snapshot - set_
resubmit_ not_ before - Records Suotar’s
retryAfterfor the pending submission, before which a resubmission may register the credits twice. SeeResubmissionFacts::resubmission_refusal. - set_
sisu_ attainment_ if_ unclaimed - Records the attainment the study registry holds, unless another live row already claims it.
- set_
submitted_ attainment