# Timeout more than 120 minutes?

**URL:** <https://discuss.circleci.com/t/timeout-more-than-120-minutes/640>\
**Category:** Build Environment\
**Tags:** ruby, timouts\
**Created:** [November 19, 2015, 3:40pm UTC](https://discuss.circleci.com/t/timeout-more-than-120-minutes/640 "2015-11-19T15:40:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asparke2](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@asparke2](https://discuss.circleci.com/u/asparke2)\
**Post date:** [November 19, 2015, 3:40pm UTC](https://discuss.circleci.com/t/timeout-more-than-120-minutes/640/1 "2015-11-19T15:40:29Z")

</div>

Ruby library, running tests in a Docker container. Currently using in ‘free for open source’ mode if that makes a difference, although will likely switch to paid as we increase test load.

Expect the full test suite to take several hours because it’s performing building physics simulations, which are computationally intensive. The tests seem to be running fine, as evidenced by the contents of the build artifacts I’m storing. They also run fine locally, taking several hours as expected.

However, the build is timing out with the following message:

```
command docker run -v $(pwd):/openstudio-standards nrel/openstudio /openstudio-standards/openstudio-standards/test/bin/docker-run.sh took more than 120 minutes to run

```

Based on the fact that I’ve hit the 120 minute timeout message twice, I assume this is a built-in limit, but I haven’t been able to find anything about it in the documentation. Is there any way I can increase this timeout? Parallelization could also help address this problem if the limit can’t be increased.

Here’s what I’ve tried so far:

1. Set the timeout to 21s: [that build](https://circleci.com/gh/NREL/openstudio-standards/58#config) timed out after 21s as expected.
2. Increased the timeout to 21600s (6hrs), but [this build](https://circleci.com/gh/NREL/openstudio-standards/59#config) timed out after 2hrs anyway.

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexey/32/42_2.png) [@alexey](https://discuss.circleci.com/u/alexey)\
**Post date:** [November 19, 2015, 3:54pm UTC](https://discuss.circleci.com/t/timeout-more-than-120-minutes/640/2 "2015-11-19T15:54:20Z")

</div>

There is a hard limit of 120 minutes per command—this helps us ensure that the infrastructure can be redeployed fast enough in case of a security vulnerability while still not breaking your build and not leaving it in an inconsistent state.

Would it be possible to use multiple containers in parallel and split the tests / simulations between them? This should allow you to stay under the 2h limit.

Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![asparke2](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@asparke2](https://discuss.circleci.com/u/asparke2)\
**Post date:** [November 19, 2015, 4:12pm UTC](https://discuss.circleci.com/t/timeout-more-than-120-minutes/640/3 "2015-11-19T16:12:09Z")

</div>

Makes sense, thanks for the quick reply! I will parallelize the test suite.

---

<div class="post-metadata">

**Author:** ![kyelok](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kyelok](https://discuss.circleci.com/u/kyelok)\
**Post date:** [October 7, 2016, 5:09pm UTC](https://discuss.circleci.com/t/timeout-more-than-120-minutes/640/4 "2016-10-07T17:09:32Z")

</div>

Is there a way to increase this limit?

---

<div class="post-metadata">

**Author:** ![thebarty](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@thebarty](https://discuss.circleci.com/u/thebarty)\
**Post date:** [March 3, 2017, 8:14pm UTC](https://discuss.circleci.com/t/timeout-more-than-120-minutes/640/5 "2017-03-03T20:14:53Z")

</div>

Hi guys, just ran into this problem. My acceptance tests are starting to take a looong time.

Is there any way to increase the limit?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:37am UTC](https://discuss.circleci.com/t/timeout-more-than-120-minutes/640/6 "2018-06-18T11:37:37Z")

</div>


