You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where I work we have several self hosted windows based runners that have some software installed that needs to refresh a license token every x days. Is there a way to do this nicely with the action runner via some sort of periodic maintenance?
There are a few limitations:
the refresh takes several minutes, so I'd rather don't do it as pre or post step via the runner (script) as it would add add a lot of extra build time to already heavily used runners (we only have to refresh once per x days while the runner will run the action tens of times per day)
Refreshing the token while the software is in use will result in errors (thus failing the action that is running)
We have more then one runner of this type, all grouped. So making a fake repository with an action scripts that runs periodically does not ensure that all runners of that label get updated
I know it is an option to create a scheduled task with a script that will check via the api of Github to see if the runner is in use, shut down the agent, do the refresh and start it again. But I'd rather have a 'build in runner solution' (if it exists) over some home-brew powershell script.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Where I work we have several self hosted windows based runners that have some software installed that needs to refresh a license token every x days. Is there a way to do this nicely with the action runner via some sort of periodic maintenance?
There are a few limitations:
I know it is an option to create a scheduled task with a script that will check via the api of Github to see if the runner is in use, shut down the agent, do the refresh and start it again. But I'd rather have a 'build in runner solution' (if it exists) over some home-brew powershell script.
Beta Was this translation helpful? Give feedback.
All reactions