ok - I now understand what is going wrong. In example code for queues, we often use a foreach loop t
ok - I now understand what is going wrong.
In example code for queues, we often use a foreach loop to work through the batch. This has a nasty bug (the JS side of it) - I remembered coming across a similar issue a while back with async foreach loops in Node.
So, any async work needing to be done within the scope of the queue, you need to use a plain old for loop. This was hours and hours of debugging. I hope no-one else hits this, or at least people will know.
In example code for queues, we often use a foreach loop to work through the batch. This has a nasty bug (the JS side of it) - I remembered coming across a similar issue a while back with async foreach loops in Node.
So, any async work needing to be done within the scope of the queue, you need to use a plain old for loop. This was hours and hours of debugging. I hope no-one else hits this, or at least people will know.

