pub async fn run_phase_once(
_pool: &PgPool,
phase: CreditRegistrationPhase,
) -> Result<PhaseTick>Expand description
Runs exactly one iteration of one phase.
The match below is the single place a phase implementation is registered: the tick endpoint, the worker loops and the dashboard all run phases through here.
Takes the pool rather than a connection so an unimplemented phase costs no connection.