woodpecker-ci / autoscaler

Scale your woodpecker agents automatically to the moon and back based on the current load.
Apache License 2.0
29 stars 5 forks source link

Re"activate" agents when more work has to be done #157

Closed anbraten closed 3 weeks ago

anbraten commented 1 month ago

Currently we set NoSchedule to true when an agent isn't needed anymore. In the time it is still processing pipelines, new work could come up, but the agent would not be set to NoSchedule=false again. Instead it is removed and a new agent is spawned afterwards.

pat-s commented 3 weeks ago

I came across this just now

image

Because I had set WOODPECKER_MAX_AGENTS, I also had to wait until the first build was done even though there were plenty of resources available on the active node.

Happy to test!