Skip to content

Commit

Permalink
fix(scripts): define max backoff
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Aug 19, 2024
1 parent cf71bf4 commit d4865e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/validate-sgid-index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function retry(client) {
retries: 7,
retryDelay: (retryCount) => {
const randomNumberMS = random(1000, 8000);
return Math.min(4 ** retryCount + randomNumberMS, maximumBackoff);
return Math.min(4 ** retryCount + randomNumberMS, 20000);
},
retryCondition: (error) => error.response.status === 429,
});
Expand Down

0 comments on commit d4865e8

Please sign in to comment.