# Can a configuration be made to run one build at a time?

**URL:** https://www.finalbuilder.com/forums/t/can-a-configuration-be-made-to-run-one-build-at-a-time/5124
**Category:** Discussion
**Created:** [December 7, 2013, 12:38pm UTC](https://www.finalbuilder.com/forums/t/can-a-configuration-be-made-to-run-one-build-at-a-time/5124 "2013-12-07T12:38:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sgjennings](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sgjennings/32/141_2.png) [@sgjennings](https://www.finalbuilder.com/forums/u/sgjennings)
#### Post date: [December 7, 2013, 12:38pm UTC](https://www.finalbuilder.com/forums/t/can-a-configuration-be-made-to-run-one-build-at-a-time/5124/1 "2013-12-07T12:38:17Z")

</div>

During build, our build server deploys to a testing server and runs various tests. If two different branches of the same configuration run simultaneously, both branches try to deploy to the testing server at the same time, and so they step on each other.

Is there a way to mark a configuration so additional builds of the same configuration will stay queued until the previous build completes? Simultaneous builds of different configurations is fine, just not of the same configuration. I can't find a way in the program or documentation to achieve this. I thought I could set a queue condition, but I can't find a property to key off of.

It would also work if we could restrict a stage to only have one simultaneous build.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 10, 2013, 3:26am UTC](https://www.finalbuilder.com/forums/t/can-a-configuration-be-made-to-run-one-build-at-a-time/5124/2 "2013-12-10T03:26:01Z")

</div>

Hi Stephen   
  
 It can’t be done at the moment, because the number of running builds/stages is not exposed to the object model used to evaluate conditions. I had a quick look at this, and at first glance it looked simple, however it’s possible for other builds (of the same config) to start executing while the conditions are being evaluated, and then I ended up with more builds running than I allowed in the conditions. I will need to do some further investigation on this.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 11, 2013, 8:18am UTC](https://www.finalbuilder.com/forums/t/can-a-configuration-be-made-to-run-one-build-at-a-time/5124/3 "2013-12-11T08:18:12Z")

</div>

Hi Stephen   
  
 The good news is we now have this working We’ll do some more testing on this tomorrow and hopefully it will make it into tomorrows build (we have a few other fixes to test before a build is ready). The functionality will be available through configuration conditions.

---

<div class="post-metadata">

### Author: ![sgjennings](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sgjennings/32/141_2.png) [@sgjennings](https://www.finalbuilder.com/forums/u/sgjennings)
#### Post date: [December 11, 2013, 11:10am UTC](https://www.finalbuilder.com/forums/t/can-a-configuration-be-made-to-run-one-build-at-a-time/5124/4 "2013-12-11T11:10:05Z")

</div>

Oh, fantastic. Thank you!
