> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thena.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Retry Failed Jobs

> Retry failed jobs in a specific priority queue.

This will:
- Find failed jobs in the queue
- Reset their status
- Re-enqueue for execution



## OpenAPI

````yaml post /api/v1/flows/queue/retry
openapi: 3.1.0
info:
  title: ThenaAgentStudio
  description: |2-

        ThenaCrew AI CRM Renewal System

        An intelligent platform to automate customer renewal insights and communications through multi-agent workflows.

        Key Features:
        * AI-powered renewal analysis
        * Personalized communication generation
        * Automated opportunity tracking
        * Multi-agent workflow orchestration
        
  version: 1.0.0
servers:
  - url: https://agent-studio.thena.ai
    description: Production server
  - url: http://localhost:8008
    description: Local development server
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
    description: Agent management endpoints
  - name: Chat
    description: Chat and messaging endpoints
paths:
  /api/v1/flows/queue/retry:
    post:
      tags:
        - flow-execution
      summary: Retry Failed Jobs
      description: |-
        Retry failed jobs in a specific priority queue.

        This will:
        - Find failed jobs in the queue
        - Reset their status
        - Re-enqueue for execution
      operationId: retry_failed_jobs_api_v1_flows_queue_retry_post
      parameters:
        - name: priority
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/ExecutionPriority'
        - name: max_retries
          in: query
          required: false
          schema:
            type: integer
            maximum: 10
            minimum: 1
            description: Maximum retry attempts
            default: 3
            title: Max Retries
          description: Maximum retry attempts
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ExecutionPriority:
      type: string
      enum:
        - low
        - normal
        - high
        - urgent
      title: ExecutionPriority
      description: Execution priority levels.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````