Limit concurrent downloads and retry failed downloads

These optimizations both help large albums where many simultaneous downloads will overwhelm Immich. Also with larger downloads, a transient network error is more likely to happen to at least one asset, so three total attempts will be made per asset.

If download fails after retries, the entire download will be aborted. This is to avoid silent failures where users may think their download is complete when assets may actually have been dropped.

The next optimization to make will be building the archive on disk instead of loading every image into memory (will fail for very large albums).
This commit is contained in:
Andrew Hyatt
2026-05-17 20:39:08 -04:00
parent 7a04fd6d3e
commit 0f88414730
3 changed files with 102 additions and 28 deletions
+1
View File
@@ -7,6 +7,7 @@
"downloadOriginalPhoto": true,
"downloadedFilename": 0,
"allowDownloadAll": 0,
"downloadFromImmichConcurrencyLimit": 20,
"allowSlugLinks": true,
"showHomePage": true,
"showMetadata": {