Skip to content

Commit

Permalink
chore(ci): better retry defaults (#6472)
Browse files Browse the repository at this point in the history
Noticed runs here hitting requestlimitexceeded when trying to create a
launch config (needed for CreateFleet)
  • Loading branch information
ludamad committed May 16, 2024
1 parent e9e5526 commit b23f1fd
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 @@ -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;
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 @@ -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;
Expand Down

0 comments on commit b23f1fd

Please sign in to comment.