pub async fn get_attention_items(
conn: &mut PgConnection,
thresholds: &StuckThresholds,
too_many_attempts: i32,
limit: i64,
) -> ModelResult<Vec<AttentionRegistration>>Expand description
Rows at least one attention detector picked, worst-waiting first.
Superseded rows are excluded in the query rather than left to a predicate elsewhere: a false
positive here costs an operator’s attention directly.
thresholds are the same seconds count_stuck uses, so the table and the alert cannot
disagree about what stuck means.