Skip to content

BUG: /api/v1/admin/jobs/dlq returns 500 — admin DLQ page unusable #502

@tayebmokni

Description

@tayebmokni

Reproduction

```
curl -s -b cookies.txt 'http://localhost:8080/api/v1/admin/jobs/dlq?queue=default'
=> 500 "failed to list archived tasks"
```

Admin Jobs page (`apps/admin/src/app/(authenticated)/jobs/dlq/page.tsx`) calls this endpoint and shows the FailureState UI. Operator cannot inspect, replay, or discard dead-letter tasks.

Recommended fix

Investigate the 500 — likely a missing or misconfigured Redis/Asynq inspector connection in the handler at `apps/api/internal/admin/jobs/dlq/handler.go` (or wherever the DLQ handler lives). Ensure the inspector returns an empty list (not a panic) when no archived tasks exist for the queue.

Files to touch

  • `apps/api/internal/admin/jobs/dlq/` (handler)
  • Possibly the bootstrap in `apps/api/cmd/server/main.go` if the inspector isn't being injected

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiGo HTTP API serverarea:jobsBackground jobs, cronphase:P1-cms-corePhase 1 — CMS Corepriority:P0Critical — blocks the phaseskill:goGo programmingtype:bugDefect in shipped code

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions