Custom Job IDs
interface JobOpts {
jobId: string;
// ... 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-black",
"data": {},
"opts": {
"jobId": "my-custom-id"
}
}
]'Last updated