Skip to content

Fleet overview page: oldest-pending age, claim latency, failure trend #325

Open

Description

@rcbevans

No fleet overview page: oldest-pending age, claim latency, and failure trend are answerable only via psql.

Evidence

  • / redirects to /queues (src/taskq/web/admin/_factory.py:623); none of the ten nav tabs aggregates fleet health.
  • Oldest-pending age (how long the head of a queue has waited) appears nowhere.
  • Claim latency (enqueue-to-start) is never computed; the SQL is one join over job_attempts.started_at vs jobs.created_at.
  • No time-bucketed failure trend anywhere; job_events is read only per-job (jobs.py:146).

Fix direction
GET /admin/api/fleet returning per-queue pending/scheduled/running/failed counts, max(now() - created_at) FILTER pending, p95 claim latency, and failure count vs the prior window; render as a dashboard at /. The metrics exist as Prometheus gauges (taskq.jobs.actor_backlog, oldest_pending_age_seconds); the UI needs the same numbers.

Severity: high. This is the difference between a status page and an incident console.

Activity

  1. added
    enhancement
    admin-ui
    on Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    admin-uienhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions