1
0
mirror of https://github.com/immich-app/immich.git synced 2025-03-30 23:04:40 +02:00
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
..
2023-07-06 09:37:47 -05:00
2023-07-06 09:37:47 -05:00
2023-12-18 20:29:26 -06:00
2024-03-14 13:09:27 -04:00
2024-01-12 07:36:27 -05:00
2024-07-02 11:09:15 +01:00
2024-02-12 15:31:59 +00:00
2023-11-19 16:41:42 -06:00

A command-line interface for interfacing with the self-hosted photo manager Immich.

Please see the Immich CLI documentation.

For developers

To run the Immich CLI from source, run the following in the cli folder:

$ npm run build
$ ts-node .

You'll need ts-node, the easiest way to install it is to use npm:

$ npm i -g ts-node

You can also build and install the CLI using

$ npm run build
$ npm install -g .