A lot of separate processes and memory consumption
Created by: Kupuyc
Hi.
I have about 18 queues at this moment and each runs with concurrency 5-10. So, there are about 160 child processes in memory and 16GB is not enough. Is it possible to kill them time by time (for example when queue is idle for some time)?
I tried to use Queue:childPool:clean() and Queue:close() but these methods destructs queue and I must to call all chain of methods to recreate queue from scratch and set process function. Something like this:
const a = new Queue();
a.process(...);
Without such code, jobs are created, but not processed.