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

# Retry Job

> Manually retry a dead, failed, or retrying job.

Resets the job's status to pending, clears the error message,
and resets the attempt counter. The job will be picked up by
the worker on the next poll cycle.

Args:
    job_id: ID of the job to retry.

Raises:
    404: Job not found.
    400: Job is not in dead, failed, or retrying status.



## OpenAPI

````yaml post /api/v1/admin/jobs/{job_id}/retry
openapi: 3.1.0
info:
  title: SnackBase
  description: Open-source Backend-as-a-Service (BaaS)
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/admin/jobs/{job_id}/retry:
    post:
      tags:
        - admin
        - jobs
        - Jobs
      summary: Retry Job
      description: |-
        Manually retry a dead, failed, or retrying job.

        Resets the job's status to pending, clears the error message,
        and resets the attempt counter. The job will be picked up by
        the worker on the next poll cycle.

        Args:
            job_id: ID of the job to retry.

        Raises:
            404: Job not found.
            400: Job is not in dead, failed, or retrying status.
      operationId: retry_job_api_v1_admin_jobs__job_id__retry_post
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    JobResponse:
      properties:
        id:
          type: string
          title: Id
        queue:
          type: string
          title: Queue
        handler:
          type: string
          title: Handler
        payload:
          additionalProperties: true
          type: object
          title: Payload
        status:
          type: string
          title: Status
        priority:
          type: integer
          title: Priority
        run_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Run At
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        failed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Failed At
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        attempt_number:
          type: integer
          title: Attempt Number
        max_retries:
          type: integer
          title: Max Retries
        retry_delay_seconds:
          type: integer
          title: Retry Delay Seconds
        created_at:
          type: string
          format: date-time
          title: Created At
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        account_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Id
      type: object
      required:
        - id
        - queue
        - handler
        - payload
        - status
        - priority
        - run_at
        - started_at
        - completed_at
        - failed_at
        - error_message
        - attempt_number
        - max_retries
        - retry_delay_seconds
        - created_at
        - created_by
        - account_id
      title: JobResponse
      description: Response schema for a single job record.
    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

````