Skip to content

Option not to reuse child process #2422

Description

@maxaggedon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions