# How to avoid crazy long "Spin up Environment" times?

**URL:** <https://discuss.circleci.com/t/how-to-avoid-crazy-long-spin-up-environment-times/31507>\
**Category:** Build Environment\
**Tags:** 2.0, workflow, docker\
**Created:** [July 23, 2019, 2:45pm UTC](https://discuss.circleci.com/t/how-to-avoid-crazy-long-spin-up-environment-times/31507 "2019-07-23T14:45:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![excenter](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/excenter/32/18610_2.png) [@excenter](https://discuss.circleci.com/u/excenter)\
**Post date:** [July 23, 2019, 2:45pm UTC](https://discuss.circleci.com/t/how-to-avoid-crazy-long-spin-up-environment-times/31507/1 "2019-07-23T14:45:46Z")

</div>

![18%20AM](https://global.discourse-cdn.com/circleci/original/3X/9/8/985ff99f6d1882206399447389b317b835c96d3f.png)  
I have a relatively complex workflow, but random jobs within it take 2-9 minutes to spin up with no visibilty into what’s taking so long. These were from the same commit, taking a workflow that should have taken 2 minutes, to one that is going to take at least 14 when it finishes.  
 ![00%20AM](https://global.discourse-cdn.com/circleci/original/3X/f/c/fcccecfa332a01dba7532561e544bf319c2e6a90.png)  
(the infuriating thing is that this job with 5x parallelism is done, in the time this fifth one spun up the other 4 did all of the work and finished in under 20 seconds, leaving this vestigial container to sit there, “spinning”, blocking the rest of the workflow)

Is there anything I can do to fix this?

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [July 23, 2019, 5:20pm UTC](https://discuss.circleci.com/t/how-to-avoid-crazy-long-spin-up-environment-times/31507/2 "2019-07-23T17:20:37Z")

</div>

I would submit that as a support ticket. My workflows are admittedly simple, but I can’t imagine why a complex workflow would take a long time to get an environment - maybe it is waiting for a set of resources so it can get the right number of containers?

I’ve just checked a few recent spin-up times for my current work, and I am seeing 3s, 5s, 10s, etc.
