retry download only 3 times

This commit is contained in:
Girish Ramakrishnan
2025-10-07 20:42:04 +02:00
parent 2ba0d716d1
commit 505c71855e
2 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ async function download(backupSite, remotePath, dataLayout, progressCallback) {
debug(`download: Downloading ${remotePath} to ${dataLayout.toString()}`);
await promiseRetry({ times: 5, interval: 20000, debug }, async () => {
await promiseRetry({ times: 3, interval: 20000, debug }, async () => {
progressCallback({ message: `Downloading backup ${remotePath}` });
const sourceStream = await backupSites.storageApi(backupSite).download(backupSite.config, remotePath);