Skip to content

Commit

Permalink
fix: spot retry fixup (AztecProtocol#6476)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad authored May 16, 2024
1 parent 2862767 commit 784d784
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/spot-runner-action/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
3 changes: 3 additions & 0 deletions .github/spot-runner-action/src/ec2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 784d784

Please sign in to comment.