azure pipeline agents don't always remove #3349
Replies: 6 comments 3 replies
-
|
hey, |
Beta Was this translation helpful? Give feedback.
-
|
Hey @JorTurFer , So the agent is left in an offline state in the ADO agent pool but when you check back in AKS, the pod and job is no longer there or the job shows as success. Then requires to be manually removed from ADO. |
Beta Was this translation helpful? Give feedback.
-
|
Just to clarify it, is it your problem related with agent pods not deleted from the AKS or with orphan agent in Azure DevOps? |
Beta Was this translation helpful? Give feedback.
-
|
maybe would be best for me to explain the problem again:
|
Beta Was this translation helpful? Give feedback.
-
|
hey, |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I think you do not need to unregister it from ADO. I leave it here for future similar issues. Script Enjoy! |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Report
i've got scaledjob setup and a placeholder agent in ADO. Sometimes the agents are remove when their job is finished and sometimes they're not. Some agents which don't get removed will have a job lasting 13 minutes and others 1hr so doesn't seem to be consistent.
Expected Behavior
the agents should remove each time a job has finished
Actual Behavior
some do, some don't. leaving the pool with tons of offline agents.
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
No response
Kubernetes Version
No response
Platform
Microsoft Azure
Scaler Details
pipeline
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions