Skip to main content

list_recent

Function list_recent 

Source
pub fn list_recent(
    connection: &mut PgConnection,
    active_only: bool,
    limit: i64,
) -> Vec<Job>
Expand description

Lists recent jobs, most-recent-first, capped at limit. With active_only, returns just the pending (non-terminal: queued/running) jobs — the fleet-wide observability check for any background-task capability. Best-effort: an error yields an empty list rather than propagating.