-
Notifications
You must be signed in to change notification settings - Fork 868
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
self-hosted agents not removing after job finishes #3898
Comments
The documentation says that the agent will be stopped, not removed. Some script from the outside should handle the removal from the pool. We do it like this.
|
I don't see where it says it will be just be stopped? it says it will "spin down gracefully": I have a cron job setup externally which targets the devops API and removes them but would be nice if it just removed it like it should without any additional script. worth noting I'm mostly just seeing this with windows agents, linux ones seem to work fine. |
This issue has had no activity in 180 days. Please comment if it is not actually stale |
yes still an issue |
Still an issue |
This issue has had no activity in 180 days. Please comment if it is not actually stale |
Still an issue |
I do not have the problem running in Linux but I have the same problem running in windows agent. Version 3.230 Can we have some feedback ? thank you btw if the job is cancelled i am 60% sure that will not exit gracefully |
Same issue even with the shutdown function. |
I have a self-hosted agent setup as per the documentation here.
I've added
run once
to the script as per documentation here however sometimes it removes the agent and sometimes it doesn't which results in lots of random offline agents sitting there waiting for manual removal.The whole point of adding this
run once
is so that when the job finishes it removes the agent.The text was updated successfully, but these errors were encountered: