Retries
interface JobOpts {
attempts: number;
backoff: {
type: "exponential" | "linear",
delay: number // Time in milliseconds
}
// ... More opts
}curl --location 'http://mydomain.dev/queues/my-queue/jobs' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer my-secret-token' \
--data '[{
"name": "paint-red",
"data": {},
"opts": {
"attempts": 5,
"backoff": {
"type": "exponential",
"delay": 1000
}
}]'Last updated