Expand description
Per-phase heartbeat and control for the credit registration pipeline.
One row per phase, seeded by migration and thereafter only ever updated.
Structs§
- Credit
Registration Phase State - Phase
RunOutcome - What one iteration of a phase did, as its phase-state row records it.
Constants§
- PHASES
- Canonical phase names, used verbatim as the
phasevalue, in the test tick endpoint, the dashboard and the audit log.
Functions§
- get_all
- get_
by_ phase - heartbeat
- Written every iteration, work or not, so idle and wedged stay distinguishable.
- is_
paused - keep_
alive - Keeps a long iteration from reading as a dead worker; unlike
heartbeat, leaveslast_run_started_atat the iteration’s start. - pause
- record_
run - Closes out an iteration. Only a success moves
last_success_at, so a wedged phase stays distinguishable from a quiet one. - resume
- run_now
- Makes the phase due now; the phase loop picks it up on its next
next_run_atcheck. - set_
next_ run_ at