Minimal setup to reproduce bugs caused by combining NodeJS cluster with BullMQ queues. See taskforcesh/bullmq#1507 for more info.
- Make sure Redis is running on
localhost:6379
npm i && npm run start:dev
- Open http://localhost:5005/dashboard to view queue jobs
-
Every job on bull-board shows attempt #2 (reflecting(this actually shows up with cluster disabled as well - might be a bug with bull-board)job.attemptsMade
)
You can verify that changing CLUSTER_ENABLED
to false
at the top of index.ts will resolve the first issue ("missing lock for job").