NextChapterSoftware / ec2-action-builder

This is a custom GitHub action to provision and manage self-hosted runners using AWS EC2 On-Demand and/or Spot instances.
Apache License 2.0
10 stars 6 forks source link

Can const retryIntervalSeconds = 10; be customized? #30

Open brianbattformant opened 1 week ago

brianbattformant commented 1 week ago

Hi there! I'm finding that I'm quickly running out of Github tokens using this action. Is it possible to customize the retryIntervalSeconds in the yaml script? Here's the instances where I'd like to customize it:

https://github.com/NextChapterSoftware/ec2-action-builder/blob/main/src/github/github.ts#L95

https://github.com/NextChapterSoftware/ec2-action-builder/blob/main/src/github/github.ts#L132

mahdi-torabi commented 1 week ago

Hmm, this basically makes 6 API requests/second and since it's an authenticated request it shouldn't cause an issue. I can make it configurable through the action settings. Would that work ?

brianbattformant commented 6 days ago

Hi there! Yes, if you could make it configurable, that would be amazing. Thank you!