1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-26 09:52:35 +01:00
Commit graph

2 commits

Author SHA1 Message Date
Lena Tauchner
6729782c3f
fix(cli): Concurrency not fully using queue potential () 2024-11-15 13:09:56 -05:00
Simon Thiboutôt
eb89208abb
feat(cli): use a queue for duplicate and upload ()
* feat(cli): use a queue for duplicate and upload

Using a queue to process the files makes the file duplicate detection and asset upload more stable and tolerant of network errors. If an error occurs, the whole command will not stop; the task will be retried (3 times) before logging the error and moving to the next step.

The new queue abstraction is using [fastq](https://www.npmjs.com/package/fastq) internally.

* chore(cli): queue.push return promise which resolve with task

* test(cli): add spec for uploadFiles and checkForDuplicates
2024-07-08 22:39:07 -05:00