Skip to content

Commit

Permalink
wait longer between retries
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcphers committed Dec 11, 2024
1 parent e3d5aed commit 51e1aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/run-with-retry.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ while ($attempt -lt $maxAttempts -and -not $success) {
} else {
Write-Host "Command '$command' had exit code $LASTEXITCODE on attempt $attempt of $maxAttempts"

# Wait 5 seconds before retrying
Start-Sleep -Seconds 5
# Wait 30 seconds before retrying to allow file locks to release
Start-Sleep -Seconds 30
}
}
catch {
Expand Down

0 comments on commit 51e1aac

Please sign in to comment.