bitdruid / python-wayback-machine-downloader

Query and download archive.org as simple as possible.
MIT License
34 stars 2 forks source link

When a worker crashes, the batch it was processing cannot be taken over by other workers #9

Closed Ghost-chu closed 5 months ago

Ghost-chu commented 5 months ago

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.

bitdruid commented 5 months ago

did minor changes to implement a queue