Don't Remove Support to `--once`
See original GitHub issueOn PR #660, the --ephemeral
flag was introduced with the intent of replacing the --once
flag. But by deregistering and reregistering the runner every time, the number of API calls to GitHub dramatically increases, and eventually, the rate limit is exceeded.
I experienced before the --ephemeral
even existed. Every time I wanted to run a job, I was registering a new runner, starting it with --once
, and deregistering it after the job was completed. Quickly the maximum number of API calls allowed to a GitHub App was exceeded. I solve the problem by keeping the credentials of runners and only registering and deregistering runners on upscale and downscale operations.
With the removal of the --once
flag, it will not possible to run a single job on the runner without removing it when the job is completed. Effectively limiting the number of ephemeral runners that can be used within an hour. Using a PAT, you are limited to 2500 jobs run by a self-hosted runner, assuming the only operations you do are runner registration and deregistration. With a GitHub App, in the best case, you will be able to run 6250 jobs, or 7500 with GitHub Enterprise Cloud, which is not reasonable for a lot of companies.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:13 (1 by maintainers)
Top GitHub Comments
@thboop Does the endpoint limit count for enterprise, organization and repo registration tokens?
I’ve tested all 3 and I see 0 used for
actions_runner_registration
but the core used count increases instead.Hey @t0rr3sp3dr0 ,
Thanks for the feedback here. A few things our team is working on:
--once
flag just yet. Our team views ephemeral as the future, but we want to ensure we don’t break your current workflows as we move towards itPlease follow up if you have any questions or concerns, and we appreciate the feedback!