Skip to content

Commit

Permalink
Increase maximum backoff before timing out
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Mar 2, 2020
1 parent 0f565b4 commit 07e72fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ async function waitForNewRelease(oldRelease, app, multiplier) {
if (await isNextReleaseHealthy(oldRelease + 1, app)) {
return await Promise.resolve(true);
} else {
if (multiplier <= 5) {
if (multiplier <= 10) {
await wait(Math.pow(2, multiplier));

await waitForNewRelease(oldRelease, app, multiplier + 1);
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function waitForNewRelease(oldRelease, app, multiplier) {
if (await isNextReleaseHealthy(oldRelease + 1, app)) {
return await Promise.resolve(true);
} else {
if (multiplier <= 5) {
if (multiplier <= 10) {
await wait(Math.pow(2, multiplier));

await waitForNewRelease(oldRelease, app, multiplier + 1);
Expand Down

0 comments on commit 07e72fb

Please sign in to comment.