-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optionally bind ephemeral runner to particular GitHub job? #59
Comments
I'm not aware that you can tell the actions service to assign the job request to a specific runner. This runner have to accept any job request it receives, in case of ephemeral runners you cannot even receive a second job.
I would suggest to use different runner labels to distinguish different runner configurations or sizes.
It might be possible to do what you want by redesigning this app.
|
Yeah, we're using different Thanks for the redesign sketch; I'll ponder such a thing. |
I think this can now be implemented for an autoscaler, however needs changes to the autoscaler to be able to use it. Currently in test phase in #67.
|
I also created a powershell script, which allows you to use the same autoscale technique with an actions/runner worker A e.g. to use a custom worker |
Related to:
If actions/runner supports this, then we are ready to clone this functionality. |
Hello and thanks for
github-act-runner
. We're using it in a home-brew implementation of https://docs.github.com/en/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners . Our system dispatches work requests from GitHub to a pool of consumers that queue for such requests and, upon receipt, spawn an ephemeralgithub-act-runner
. Curiously, if GitHub pushes two work requests our way (with two distinctworkflow_job.id
values), there seems to be no way for us to instruct the two resulting ephemeral runners to pick up theworkflow_job
that triggered their creation. This is fine at present, because all our workers are uniform, but it seems like the kind of thing that might occasionally result in strange logs: worker N constructs an ephemeral runner in response to job request X from repo R but ends up running job Y (which is, at least, also guaranteed to also be from repo R), while worker M constructs an ephemeral runner for Y but ends up running X.Are you aware of any way that we could plumb the
workflow_job.id
value down to the ephemeral runner and thence to GitHub when it asks to pick up a job on the repository? I'm sorry if this should be obvious and I have simply overlooked something in the documentation.The text was updated successfully, but these errors were encountered: