New issue
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
Infinite Node processes get spawned for invalid sandboxed workers #1587
Comments
On which version of BullMQ are you getting this behaviour? |
@manast |
# [3.5.0](v3.4.2...v3.5.0) (2022-12-20) ### Bug Fixes * **job:** fetch parent before job moves to complete ([#1580](#1580)) ([6a6c0dc](6a6c0dc)) * **sandbox:** throw error when no exported function ([#1588](#1588)) fixes [#1587](#1587) ([c031891](c031891)) ### Features * **queue:** add getJobState method ([#1593](#1593)) ref [#1532](#1532) ([b741e84](b741e84))
@roggervalf the issue is still present in the latest release 3.5.1 Here's my test case with 24 items in queue: |
Let's reopen this one to investigate what is going on. |
Hi! Recently, I encountered an issue where BullMQ would infinitely spawn node processes until the computer eventually runs out of memory and crashes. Here's the screenshot from my Linux box:
This occurs when sanboxed processor JS file doesn't have/can't reach a valid default export.
(e.g. third party module throws, syntax typo etc.)
Reproduction
I'd expect BullMQ to log a message like "Worker JS file could not have been imported" instead of spawning infinite Node processes. (silly mistakes happen, but that shouldn't be the reason to crash the host :)
Thanks!
The text was updated successfully, but these errors were encountered: