We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: Job.getDependencies performance is really bad to the point of unusable.
For my personal project at 40000 Child jobs generated using FlowProducer it takes more than 5 minutes on a strong personal computer.
The root cause is this [code snippet]. Destructuring is very very slow. (
bullmq/src/classes/job.ts
Lines 672 to 677 in 907ae1d
An easy fix is to mutate accumulator object instead of doing destructuring.
accumulator
const transformedProcessed = Object.entries(processed).reduce( (accumulator, [key, value]) => { accumulator[key] = JSON.parse(value); return accumulator; }, {}, );
Steps to reproduce:
job.getDependencies
The text was updated successfully, but these errors were encountered:
ec8afcc
🎉 This issue has been resolved in version 1.86.8 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
No branches or pull requests
Problem:
Job.getDependencies performance is really bad to the point of unusable.
For my personal project at 40000 Child jobs generated using FlowProducer it takes more than 5 minutes on a strong personal computer.
The root cause is this [code snippet]. Destructuring is very very slow. (
bullmq/src/classes/job.ts
Lines 672 to 677 in 907ae1d
An easy fix is to mutate
accumulator
object instead of doing destructuring.Steps to reproduce:
job.getDependencies
using the parent job of Flow Producer.The text was updated successfully, but these errors were encountered: