List jobs
list_jobsList jobs in a queue filtered by state, with pagination. Returns job id, type, attempts, and truncated last error to inspect queue contents.
Instructions
List jobs in a given state (paged). Returns id, type, attempts and a truncated last error. Valid states depend on the backend: asynq uses pending/active/scheduled/retry/archived/completed; bullmq uses waiting/active/delayed/prioritized/waiting-children/paused/completed/failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum jobs to return. | |
| queue | Yes | Queue name, as reported by list_queues. | |
| state | Yes | State to list, e.g. "failed" (bullmq) or "archived" (asynq). | |
| offset | No | Number of jobs to skip. | |
| backend | No | Which backend owns the queue. Optional when the queue name is unique across backends. |