Skip to main content

terminal_outcome_alerts

Function terminal_outcome_alerts 

Source
async fn terminal_outcome_alerts(
    conn: &mut PgConnection,
    now: DateTime<Utc>,
    depths: &[(CreditRegistrationState, i64)],
) -> ModelResult<Vec<CreditRegistrationAlert>>
Expand description

The three rules read off the last day’s terminal outcomes: failures piling up, reversals, and a pipeline that finished nothing while holding work.