Queue
Queue copied to clipboard
RangeError: Too many elements passed to Promise.all
Your readme excited me because it says, I use it with tens of thousands of jobs on the queue. However, I tried adding 10,400 items to the queue and got RangeError: Too many elements passed to Promise.all. I am using the 1.2 syntax (second example in your README). Is there a different approach required for larger queues?
Can you post your code? Are you calling flush()?
I am routinely using it with more than 100,000 jobs and normally the limit for Promise.all is 2^21 which is much more than 10,400.