The current program splits the SNAPSHOT_COLLECTION into multiple batches in advance and submits them to different workers.
However, once the corresponding worker exits due to an exception, its batch cannot be processed by other workers unless the program is restarted (and causes the same result again)
I suggest rewriting it to share the same FIFO queue, which reduces memory consumption and allows other workers to continue working on unfinished work after one worker.
The current program splits the SNAPSHOT_COLLECTION into multiple batches in advance and submits them to different workers.
However, once the corresponding worker exits due to an exception, its batch cannot be processed by other workers unless the program is restarted (and causes the same result again)
I suggest rewriting it to share the same FIFO queue, which reduces memory consumption and allows other workers to continue working on unfinished work after one worker.