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
11 stars 7 forks source link

Can const retryIntervalSeconds = 10; be customized? #30

Closed brianbattformant closed 1 month ago

brianbattformant commented 2 months 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 2 months 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 2 months ago

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

mahdi-torabi commented 1 month ago

https://github.com/NextChapterSoftware/ec2-action-builder/pull/33

Release 1.8 is out with this change

brianbattformant commented 1 month ago

We're no longer hitting github token limits. Thank you for this!