# Autoscaling not scaling down

**URL:** <https://forum.buildkite.community/t/autoscaling-not-scaling-down/1431>\
**Category:** Elastic CI Stack for AWS\
**Created:** [January 29, 2021, 12:34am UTC](https://forum.buildkite.community/t/autoscaling-not-scaling-down/1431 "2021-01-29T00:34:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keithpitty](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/keithpitty/32/923_2.png) [@keithpitty](https://forum.buildkite.community/u/keithpitty)\
**Post date:** [January 29, 2021, 12:34am UTC](https://forum.buildkite.community/t/autoscaling-not-scaling-down/1431/1 "2021-01-29T00:34:50Z")

</div>

We’re having problems with autoscaling our agents. Currently we are not running builds as often as we used to so would like to have the flexibility to only have EC2 instances spin up to support Buildkite agents when they are needed. I can see in the Cloudwatch logs that there are six scheduled jobs and six unfinished jobs. Could that be causing the problem?

---

<div class="post-metadata">

**Author:** ![keithpitty](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/keithpitty/32/923_2.png) [@keithpitty](https://forum.buildkite.community/u/keithpitty)\
**Post date:** [February 1, 2021, 4:41am UTC](https://forum.buildkite.community/t/autoscaling-not-scaling-down/1431/2 "2021-02-01T04:41:53Z")

</div>

I found the cause of this problem. We had six very old jobs that were still running. I eventually found out how to see them via the URL https:/buildkite/organizations//builds?state=running, thanks to [UnfinishedJobsCount stuck at \>0 · Issue #72 · buildkite/buildkite-agent-metrics · GitHub](https://github.com/buildkite/buildkite-agent-metrics/issues/72). Once I’d cancelled these old jobs, autoscaling started working again!

---

<div class="post-metadata">

**Author:** ![keithpitty](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/keithpitty/32/923_2.png) [@keithpitty](https://forum.buildkite.community/u/keithpitty)\
**Post date:** [February 1, 2021, 4:43am UTC](https://forum.buildkite.community/t/autoscaling-not-scaling-down/1431/3 "2021-02-01T04:43:36Z")

</div>

Also, I should note that I incorrectly assumed that this was within the scope of Elastic CI Stack for AWS. Whilst we use AWS, our Buildkite configuration is customised via Terraform.
