Is your feature request related to a problem? Please describe.
When we started using bullmq to process jobs, we thought it would spawn a child process for each job. But we realised it does not...
Describe the solution you'd like
This would bring the advantage of not risking to have a memory leak induced by a dependency, as the child process memory would be released after each job.
Describe alternatives you've considered
We have patched it to exit the child process after each job, but it would be nice to have it as an official worker option
Additional context
Is your feature request related to a problem? Please describe.
When we started using bullmq to process jobs, we thought it would spawn a child process for each job. But we realised it does not...
Describe the solution you'd like
This would bring the advantage of not risking to have a memory leak induced by a dependency, as the child process memory would be released after each job.
Describe alternatives you've considered
We have patched it to exit the child process after each job, but it would be nice to have it as an official worker option
Additional context