immich icon indicating copy to clipboard operation
immich copied to clipboard

CLI retry failed request and don't cancel entire flow on error

Open zackpollard opened this issue 1 year ago • 2 comments
trafficstars

Currently the CLI will error and cancel the whole process if one request fails. We should probably instead retry a couple of times and then log an error that the asset failed, but continue on to other assets.

zackpollard avatar Dec 18 '23 22:12 zackpollard

This is particularly annoying when uploading a lot of assets. Was there any progress toward this issue?

masterT avatar Jun 15 '24 17:06 masterT

A significant improvement could be using an in-memory queue system (e.g., fastq) and having the ability to retry not just failed asset uploads but also other parts of the CLI.

I'm trying to upload an extensive library, and I have all kinds of network errors (I'm hosted with PikaPod, and my instance sometimes restarts, which makes the whole process crash).

I think I will craft a draft for this and open a PR.

masterT avatar Jun 18 '24 09:06 masterT