diff --git a/.github/spot-runner-action/dist/index.js b/.github/spot-runner-action/dist/index.js index b34f8c07dc9..88bf44b6b03 100644 --- a/.github/spot-runner-action/dist/index.js +++ b/.github/spot-runner-action/dist/index.js @@ -138,6 +138,9 @@ class Ec2Instance { this.client = new aws_sdk_1.default.EC2({ credentials: credentials, region: this.config.awsRegion, + maxRetries: 3, + // base 10 seconds for the exponential backoff, up to 3 times + retryDelayOptions: { base: 10000 } }); } return this.client; diff --git a/.github/spot-runner-action/src/ec2.ts b/.github/spot-runner-action/src/ec2.ts index 83211f7bba4..37026ed131e 100644 --- a/.github/spot-runner-action/src/ec2.ts +++ b/.github/spot-runner-action/src/ec2.ts @@ -51,6 +51,9 @@ export class Ec2Instance { this.client = new AWS.EC2({ credentials: credentials, region: this.config.awsRegion, + maxRetries: 3, + // base 10 seconds for the exponential backoff, up to 3 times + retryDelayOptions: {base: 10000} }); } return this.client;