No jobs get to consumers in production environment. #2544
-
Hello! I'm developing a NestJs service heavily utilizing bull. For quite a while everything was fine. But recently, I got a problem in all hosted environments - no jobs reach consumers. I monitor flow with a bull-monitor. Every job from every queue gets to the active state, hangs there for ~30 seconds, and gets failed with a message job stalled more than allowable limit. The jobs are processed in sandboxed processes.
If jobs/handle-new-event.processor.js the following code
Then got job is never printed. I thought it might be a problem with a Redis server. But everything is fine when I connect to the same server from the local environment. I would appreciate any suggestions and directions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Either the workers are losing connection while processing the jobs, or the jobs are CPU intensive and hanging NodeJS Event loop for more than 30 seconds. |
Beta Was this translation helpful? Give feedback.
Either the workers are losing connection while processing the jobs, or the jobs are CPU intensive and hanging NodeJS Event loop for more than 30 seconds.