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
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