mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
2cae9c4635
reduce concurrency for retrying failed backups GitOrigin-RevId: aeb1f05b7ed26b80c00f12fe07a5f30a14786c30
9 lines
475 B
Bash
9 lines
475 B
Bash
#!/bin/sh
|
|
# Extract project IDs with pending backups older than the configured timeout (default: 10000 seconds)
|
|
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 2 ;
|
|
done
|