diff --git a/.github/spot-runner-action/dist/index.js b/.github/spot-runner-action/dist/index.js index 88bf44b6b030..e2097f038769 100644 --- a/.github/spot-runner-action/dist/index.js +++ b/.github/spot-runner-action/dist/index.js @@ -127,6 +127,9 @@ class Ec2Instance { this.client = new aws_sdk_1.default.EC2({ credentials: this.credentials, region: this.config.awsRegion, + maxRetries: 3, + // base 10 seconds for the exponential backoff, up to 3 times + retryDelayOptions: { base: 10000 }, }); this.tags = this.getTags(); } diff --git a/.github/spot-runner-action/src/ec2.ts b/.github/spot-runner-action/src/ec2.ts index 37026ed131ed..3879b1dea1de 100644 --- a/.github/spot-runner-action/src/ec2.ts +++ b/.github/spot-runner-action/src/ec2.ts @@ -39,6 +39,9 @@ export class Ec2Instance { this.client = new AWS.EC2({ credentials: this.credentials, region: this.config.awsRegion, + maxRetries: 3, + // base 10 seconds for the exponential backoff, up to 3 times + retryDelayOptions: { base: 10000 }, }); this.tags = this.getTags();