Merge pull request #29097 from overleaf/bg-reduce-retry-backup-script-concurrency

reduce concurrency for retrying failed backups

GitOrigin-RevId: aeb1f05b7ed26b80c00f12fe07a5f30a14786c30
This commit is contained in:
Brian Gough
2025-10-15 09:54:44 +01:00
committed by Copybot
parent 129a002055
commit 2cae9c4635

View File

@@ -4,5 +4,5 @@ RETRY_TIMEOUT="${RETRY_TIMEOUT:-10000}"
ids=$(node storage/scripts/backup_scheduler.mjs --show-pending="$RETRY_TIMEOUT" | grep '^{' | jq -r '.projectId' | sort -u)
# Retry backups for each project ID with a concurrency of 5 blob uploads at a time
for project_id in $ids ; do
LOG_LEVEL=debug node storage/scripts/backup.mjs --projectId="$project_id" -c 5 ;
LOG_LEVEL=debug node storage/scripts/backup.mjs --projectId="$project_id" -c 2 ;
done