Adding jobs
The most basic operation in BullMQ is adding a job. A job is simply a data structure that has a name, some custom data and options. Jobs are added posting a JSON object to the /queues/:queue-name
endpoint. The endpoint accepts an array of jobs, if sending a standalone job do not forget to wrap it in an array.
The JSON object must follow this interface:
Lets add the simplest possible job:
The call should succeed and return the complete Job as a Json object with all the defaults as it is stored in BullMQ:
There are obviously many more advanced jobs and features which we will cover in the next pages.
Last updated