OptimalBits / bull

Premium Queue package for handling distributed jobs and messages in NodeJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spawn timeout

UROjQ6r80p opened this issue · comments

Hi,

I've read that in bull behind the scenes spawn is used for sandboxed scripts, but spawned script is not terminated based on timeout option.
node.js since version 14 supports timeout natively for child processess, so can't it be used internally to completely terminate script?

https://nodejs.org/api/child_process.html#child_processspawncommand-args-options

Even if it was possible, it would be quite an ungraceful way to close a processor I think. In any case we are not implementing new features in Bull, active development is on BullMQ: https://github.com/taskforcesh/bullmq