1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00
immich/cli/src
Simon Thiboutôt eb89208abb
feat(cli): use a queue for duplicate and upload (#10750)
* 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
..
commands feat(cli): use a queue for duplicate and upload (#10750) 2024-07-08 22:39:07 -05:00
index.ts fix(cli): dry run being inaccurate (#9088) 2024-04-25 21:14:48 -04:00
queue.ts feat(cli): use a queue for duplicate and upload (#10750) 2024-07-08 22:39:07 -05:00
utils.spec.ts fix(cli): handle patterns correctly on Windows (#10430) 2024-06-21 17:09:02 -07:00
utils.ts fix(cli): handle patterns correctly on Windows (#10430) 2024-06-21 17:09:02 -07:00