Adding jobs
interface Job {
name: string;
data: any;
opts?: JobOpts;
}curl --location 'https://myproxy.dev/queues/my-queue/jobs' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer my-secret-token' \
--data '[{
"name": "paint-red",
"data": {},
}]'[
{
"name": "paint-red",
"data": {},
"opts": { "attempts": 0, "delay": 0 },
"id": "116",
"progress": 0,
"returnvalue": null,
"stacktrace": null,
"attemptsStarted": 0,
"attemptsMade": 0,
"delay": 0,
"timestamp": 1708597320043,
"queueQualifiedName": "bull:my-test-queue"
}
]Last updated