Retry Jobs
Retry failed ingestion jobs.
Retry Single Job
Endpoint
POST /jobs/retry/:jobId
Parameters
| Parameter | Type | Location | Description |
|---|---|---|---|
jobId | string | path | The 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
| Field | Type | Description |
|---|---|---|
message | string | Success message |
count | number | Number 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
| Code | Description |
|---|---|
200 | Job(s) re-queued successfully |
404 | Job not found |