Reference
Queue API Reference
Add jobs
POST
/queues/:queue-name/jobs
Adds one or more jobs to a given queue.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Body
The body must include an array of jobs with the following structure:
Name | Type | Description |
---|---|---|
| string | Name of the job |
data | any | Arbitrary data to pass to the job processor. |
opts | JobOpts | Job options |
Response
Get Jobs
GET
/queues/:queue-name/jobs
Get jobs in a queue in pages and filtered according to their statuses.
Query Params
Name | Default | Description |
---|---|---|
statuses |
| comma separated lists of valid statuses ("waiting", "delayed", "prioritized", "completed" or "failed" |
start |
| offset on where the returned page should start |
length | 10 | Maximum number of job to return in the page |
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Response
Get Job
GET
/queues/:queue-name/jobs/job-id
<Description of the endpoint>
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Response
Last updated