Skip to main content

Retry Jobs

Retry failed ingestion jobs.

Retry Single Job​

Endpoint​

POST /jobs/retry/:jobId

Parameters​

ParameterTypeLocationDescription
jobIdstringpathThe failed job ID to retry

Example Request​

curl -X POST http://localhost:3000/jobs/retry/01HQZX3Y4Z5A6B7C8D9E0F1G2H

Response​

{
"message": "Job re-queued successfully",
"jobId": "01HQZX3Y4Z5A6B7C8D9E0F1G2H"
}

Retry All Failed Jobs​

Endpoint​

POST /jobs/retry/all

Parameters​

None

Example Request​

curl -X POST http://localhost:3000/jobs/retry/all

Response​

{
"message": "All failed jobs re-queued",
"count": 3
}

Response Fields​

FieldTypeDescription
messagestringSuccess message
countnumberNumber of jobs re-queued

Retry Behavior​

  • Jobs are re-added to the queue with the same data
  • BullMQ handles automatic retries (3 attempts by default)
  • Exponential backoff between retry attempts

Status Codes​

CodeDescription
200Job(s) re-queued successfully
404Job not found