Queue icon indicating copy to clipboard operation
Queue copied to clipboard

RangeError: Too many elements passed to Promise.all

Open chrisabrams opened this issue 3 years ago • 1 comments

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?

chrisabrams avatar Jan 02 '22 14:01 chrisabrams

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.

mmomtchev avatar Jan 02 '22 15:01 mmomtchev