Tuesday, March 12, 2024
BullMQ Pro v7 Release
Go back to news
Read more:
This is the first major release for BullMQ Pro in a while. We strive to keep breaking changes to a minimum; however, sometimes they are unavoidable.
In this instance, as we need to synchronize with BullMQ v5, the Pro version is also affected. Other than the breaking changes introduced by BullMQ, there are no additional breaking changes in this release.
Therefore, the information provided in this article remains relevant. Please take some time to understand these changes before upgrading.
Briefly this is the list of stuff that changed:
- Improved Queue markers for notifying workers about jobs to be processed.
- Better logic for the
attemptsMade
job property, and introducedattemptsStarted
- Passing a connection to Queues, Workers and QueueEvents is now mandatory.
- Custom job ids must always be strings.
- Force the use of set instead of zset for stalled jobs (*)
- If you upgrade directly from version 4 to version 6, you may get the following error: "WRONGTYPE Operation against a key holding the wrong kind of * value". If you get this error, the easiest way to solve it is by calling the Queue method "repairStalledKey". Please contact us if you need help with this process.
Here you can find the changelog with all the changes.