Add percenteage, refactor sync conditions

This commit is contained in:
Nicola Benaglia
2025-06-25 08:38:10 +02:00
parent 540ed77e6d
commit 44e9a435c4
14 changed files with 149 additions and 134 deletions

View File

@@ -71,7 +71,7 @@ async function uploadChunkWithRetry(endpoint, formData, index, maxRetries = 3) {
if (attempt >= maxRetries) {
throw new Error(`Chunk ${index} failed after ${maxRetries} attempts`);
}
// Wait 10 seconds before next retry
// Wait 25 seconds before next retry
await new Promise((res) => setTimeout(res, 25_000));
}
}