firebase-queue icon indicating copy to clipboard operation
firebase-queue copied to clipboard

Timedout Queues

Open ahaverty opened this issue 9 years ago • 3 comments

Setting numWorkers to 100, and running tasks until they timeout, appears to be not releasing queues. I haven't isolated code to prove yet, but I wanted to ask for more detail about how timeouts are intended to be used.

Is the above by design, should I be manually timing out my tasks and resolving like the guide example does, or is this a bug?

ahaverty avatar Oct 16 '16 08:10 ahaverty

For example, the first 100 tasks appear to be taken and timedout, but nothing after that first 100 is picked up by a queue

ahaverty avatar Oct 16 '16 09:10 ahaverty

100 workers is a large number of tasks to be processed in parallel in a single node process for most tasks (unless they're highly async). First off, I'd suggest lowering the number of workers per process, and try running multiple node processes, or spawning child processes to do the processing.

Let me know if you still have issues after trying that - you might simply be trying to do too much on a single CPU

cbraynor avatar Nov 04 '16 23:11 cbraynor

the 1.6.1 release fixed a bug in timeouts that could be related to some of these symptoms. Can you check out the new release and report back if things still don't work as you expect

cbraynor avatar Dec 21 '16 23:12 cbraynor