adonis-bull-queue
adonis-bull-queue copied to clipboard
Upstream changes from Zakodium
This PR attempts to upstream all the changes we have in our fork that are required for our current application to work.
- feat: update BullMQ to v5 BREAKING-CHANGE: New BullMQ version changes the data format and requires to upgrade all workers to the new version.
- fix: better error message when job cannot be loaded Not found is not always the reason. For example, loading a job's dependency could throw. Logging the error helps to understand the underlying issue.
-
fix: typings for clear, list and get methods
-
listandgetdon't return promises - The generic type of
clearis useless
-
-
feat: add getOrSet method
Like
get, but instantiates the queue if it doesn't exist yet. Without this method, the only way to get a queue other than the default one is to dispatch a job first.