-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add force option on commands #226
Comments
Hi @Hdom ! In regards to 1), there is a In regards to 2), the limitation was intentional, to avoid situations in which a PAT mai expire or a runner may be executing a job, and someone tries to remove it. In such cases we don't really want to remove the runner, as that may cancel a potentially long running job, when the underlying runner just gets removed while executing. But you are right, this does have the potential to put us in a situation where it's difficult to recover. I think we can have a procedure to purge a pool that has no chance to ever come back up due to having lost access to the entiry it was managing. I will look into this. For situations where you can get a new PAT, the quick fix is to replace the old one in the config. The pool should recover. Edit: Here are the release notes for v0.1.4 that detail the change when using This should fix 1). For 2) we need to find a proper solution. |
Oh man, I don't know how I missed that force flag, I swear I had looked at the help menu for the runner delete before and even tried adding a -f, maybe because I was using the 0.1.4-rc version of the cli. |
I think I added this after RC1 (not sure). Also, sometimes I forget to properly change the help messages 😅 . But in 0.1.4 it should work. At least for ignoring provider errors. The PAT not having access is a different code path. Will need to see what the best way forward is for that one. |
Added a PR to ddress this here: That change adds a If nothing really works and you want to remove the runner from the DB, you can specify both Give it a shot and let me know. |
Over the past month I have been working on setting up GARM instance and have ran into plenty of times where a
--force
would have come in very handy.Examples:
Error: [DELETE /pools/{poolID}][400] DeletePool default {Error:Bad Request Details:pool has runners}
), but when I try to delete the runners I get error:Error: [DELETE /instances/{instanceName}][409] DeleteInstance default {Error:Conflict Details:pool manager is not running for Org
, Org manager is not running because of errorfailed to update tools for repo Org: fetching runner tools: GET https://api.github.com/orgs/Org/actions/runners/downloads: 403 Must have admin rights to Repository.
so now I have a runner and a pool stuck and no way to force deletion of either.The text was updated successfully, but these errors were encountered: