> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-docs-agentos-durable-background-execution.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List Queue Jobs

> List job queue jobs, optionally filtered by status. Repeat the status param to match any of several (e.g. status=failed&status=cancelled for the requeueable set; status=failed alone is the dead-letter list). Useful sort_by fields: created_at (default), updated_at, completed_at, status, attempt, component_type, component_id, user_id. Unknown sort fields are ignored.



## OpenAPI

````yaml get /queue/jobs
openapi: 3.1.0
info:
  title: Agno API Reference
  description: The all-in-one, private, secure agent platform that runs in your cloud.
  version: 2.7.2
servers: []
security: []
paths:
  /queue/jobs:
    get:
      tags:
        - Queue
      summary: List Queue Jobs
      description: >-
        List job queue jobs, optionally filtered by status. Repeat the status
        param to match any of several (e.g. status=failed&status=cancelled for
        the requeueable set; status=failed alone is the dead-letter list).
        Useful sort_by fields: created_at (default), updated_at, completed_at,
        status, attempt, component_type, component_id, user_id. Unknown sort
        fields are ignored.
      operationId: list_queue_jobs
      parameters:
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            description: Status filter; repeatable to match any of several statuses
            title: Status
          description: Status filter; repeatable to match any of several statuses
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            description: Number of jobs to return per page
            default: 20
            title: Limit
          description: Number of jobs to return per page
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number for pagination
            default: 1
            title: Page
          description: Page number for pagination
        - name: sort_by
          in: query
          required: false
          schema:
            type: string
            description: Field to sort jobs by
            default: created_at
            title: Sort By
          description: Field to sort jobs by
        - name: sort_order
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/SortOrder'
            description: Sort order (asc or desc)
            default: desc
          description: Sort order (asc or desc)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_QueueJobSchema_'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthenticatedResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
        '503':
          description: Durable job queue not enabled on this replica
      security:
        - HTTPBearer: []
components:
  schemas:
    SortOrder:
      type: string
      enum:
        - asc
        - desc
      title: SortOrder
    PaginatedResponse_QueueJobSchema_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/QueueJobSchema'
          type: array
          title: Data
          description: List of items for the current page
        meta:
          $ref: '#/components/schemas/PaginationInfo'
          description: Pagination metadata
      type: object
      required:
        - data
        - meta
      title: PaginatedResponse[QueueJobSchema]
    BadRequestResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
          description: Error code for categorization
      type: object
      required:
        - detail
      title: BadRequestResponse
      example:
        detail: Bad request
        error_code: BAD_REQUEST
    UnauthenticatedResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
          description: Error code for categorization
      type: object
      required:
        - detail
      title: UnauthenticatedResponse
      example:
        detail: Unauthenticated access
        error_code: UNAUTHENTICATED
    NotFoundResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
          description: Error code for categorization
      type: object
      required:
        - detail
      title: NotFoundResponse
      example:
        detail: Not found
        error_code: NOT_FOUND
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InternalServerErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
          description: Error code for categorization
      type: object
      required:
        - detail
      title: InternalServerErrorResponse
      example:
        detail: Internal server error
        error_code: INTERNAL_SERVER_ERROR
    QueueJobSchema:
      properties:
        id:
          type: string
          title: Id
          description: Job ID (identical to the run's run_id)
        component_type:
          type: string
          title: Component Type
          description: 'Component kind: agent, team or workflow'
        component_id:
          type: string
          title: Component Id
          description: ID of the agent/team/workflow the run executes on
        session_id:
          type: string
          title: Session Id
          description: Session the run belongs to
        job_type:
          type: string
          title: Job Type
          description: Kind of work the ticket carries (runs only today)
          default: run
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
          description: User the run was submitted for
        payload:
          additionalProperties: true
          type: object
          title: Payload
          description: Serialized run parameters
        status:
          type: string
          title: Status
          description: queued | running | completed | failed | cancelled | paused
        attempt:
          type: integer
          title: Attempt
          description: Executions started so far
          default: 0
        max_attempts:
          type: integer
          title: Max Attempts
          description: Execution budget under any failure mode
          default: 1
        idempotency_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Idempotency Key
          description: Client-provided dedupe key, if any
        available_at:
          anyOf:
            - type: integer
            - type: 'null'
          title: Available At
          description: Epoch seconds the job becomes claimable
        locked_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Locked By
          description: Worker currently holding the job's lock
        locked_at:
          anyOf:
            - type: integer
            - type: 'null'
          title: Locked At
          description: Epoch seconds the current lock was taken
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
          description: Terminal error of the last attempt, if any
        created_at:
          anyOf:
            - type: integer
            - type: 'null'
          title: Created At
          description: Epoch seconds the job was accepted
        updated_at:
          anyOf:
            - type: integer
            - type: 'null'
          title: Updated At
          description: Epoch seconds of the last state change
        completed_at:
          anyOf:
            - type: integer
            - type: 'null'
          title: Completed At
          description: Epoch seconds the job reached a terminal state
      type: object
      required:
        - id
        - component_type
        - component_id
        - session_id
        - status
      title: QueueJobSchema
      description: One durable queue job (a background run's queue ticket).
    PaginationInfo:
      properties:
        page:
          type: integer
          minimum: 0
          title: Page
          description: Current page number (0-indexed)
          default: 0
        limit:
          type: integer
          minimum: 1
          title: Limit
          description: Number of items per page
          default: 20
        total_pages:
          type: integer
          minimum: 0
          title: Total Pages
          description: Total number of pages
          default: 0
        total_count:
          type: integer
          minimum: 0
          title: Total Count
          description: Total count of items
          default: 0
        search_time_ms:
          type: number
          minimum: 0
          title: Search Time Ms
          description: Search execution time in milliseconds
          default: 0
      type: object
      title: PaginationInfo
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````