Skip to main content

phase_alerts

Function phase_alerts 

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

What the phase table says about itself: phases that stopped reporting, and phases that report but get nowhere.

A phase that has never heartbeated is deliberately outside both: a freshly migrated database has no heartbeats at all, and that would keep the banner permanently red.