Skip to content

v1.2.0

Compare
Choose a tag to compare
@Skn0tt Skn0tt released this 22 Feb 21:17
· 1839 commits to main since this release

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: