v1.2.0
The job handler is now given some metadata about the executed job (#141):
export default Queue(
"api/some-queue",
async (job, { id, exclusive, retry, ... } /* 👈 */) => {
// ...
}
)
In addition to .enqueue
, we now have .enqueueMany
(#129):
queue.enqueueMany([
{
payload: "1"
options: {
delay: "1min"
}
},
{
payload: "2",
options: {
delay: "2min"
}
},
...
])
Also, there's the new .enqueueMany
Bugs:
- Fixed a bug where CronJob declarations with comments weren't recognised
- Fixed a vulnerability where jobs with ":" in their ID could break redis keys
Meta:
- Added @aalaap, @batteredgherkin as contributors