Skip to content

Commit 75c89ba

Browse files
committed
Fix bug
1 parent ec29528 commit 75c89ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

samples/batch/Invoke-BatchWithRetry.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ function Invoke-BatchWithRetry {
1717
foreach ($resp in $result.responses) {
1818
"Id : $($resp.id), Status : $($resp.status)" | Out-File -FilePath "Path\To\log.txt" -Append
1919
if ($resp.status -eq 429) {
20-
# Add to retry list
21-
$pending = $pending | Where-Object { $_.id -eq $resp.id }
20+
# Do nothing - will retry later
2221
} else {
2322
$responses[$resp.id] = $resp
2423
# Remove from pending

0 commit comments

Comments
 (0)