# Job times out after 5 hours

**URL:** <https://discuss.circleci.com/t/job-times-out-after-5-hours/32220>\
**Category:** Build Environment\
**Created:** [September 2, 2019, 2:21pm UTC](https://discuss.circleci.com/t/job-times-out-after-5-hours/32220 "2019-09-02T14:21:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![acabarbaye](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/acabarbaye/32/23110_2.png) [@acabarbaye](https://discuss.circleci.com/u/acabarbaye)\
**Post date:** [September 2, 2019, 2:21pm UTC](https://discuss.circleci.com/t/job-times-out-after-5-hours/32220/1 "2019-09-02T14:21:45Z")

</div>

Hi,  
I have seen this subject being discussed few times but could not see any resolution.  
I received the following error: “Build timed out after 5h0m0s” in one of my jobs (Docker executor). Having seen this exact message in other tickets ([How to increase job's runtime](https://discuss.circleci.com/t/how-to-increase-jobs-runtime/27552), [Maximum build time for builds](https://discuss.circleci.com/t/maximum-build-time-for-builds/18383)), I believe this is a hard limit set by CircleCI.  
I have two questions then:

- Is this limit documented anywhere?
- Is it possible to increase this limit as I have an overnight long running job and it is normal for it to take longer than 5 hours?  
I also use the `no_output_timeout` option but this does not seem to be responsible for the timeout.

Many thanks,  
Adrien

---

<div class="post-metadata">

**Author:** ![johnhiggs](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/johnhiggs/32/23581_2.png) [@johnhiggs](https://discuss.circleci.com/u/johnhiggs)\
**Post date:** [September 12, 2019, 3:35pm UTC](https://discuss.circleci.com/t/job-times-out-after-5-hours/32220/2 "2019-09-12T15:35:09Z")

</div>

Having the same issue using the macOS executor as well suddenly with no changes to build command

had created a support ticket but no response yet

---

<div class="post-metadata">

**Author:** ![Estill25](https://avatars.discourse-cdn.com/v4/letter/e/ecccb3/32.png) [@Estill25](https://discuss.circleci.com/u/Estill25)\
**Post date:** [September 21, 2019, 4:05am UTC](https://discuss.circleci.com/t/job-times-out-after-5-hours/32220/3 "2019-09-21T04:05:13Z")

</div>

Yeah have been facing the identical issue since last week. I hope an accurate solution is being delivered soon[.](https://www.mywegmansconnect.us/)

---

<div class="post-metadata">

**Author:** ![KyleTryon](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kyletryon/32/9977_2.png) [@KyleTryon](https://discuss.circleci.com/u/KyleTryon)\
**Post date:** [September 23, 2019, 1:18pm UTC](https://discuss.circleci.com/t/job-times-out-after-5-hours/32220/4 "2019-09-23T13:18:22Z")

</div>

> [@acabarbaye](#):
>
> Is it possible to increase this limit as I have an overnight long running job and it is normal for it to take longer than 5 hours?  
> I also use the `no_output_timeout` option but this does not seem to be responsible for the timeout.

Hello @acabarbaye,

All jobs on CircleCI have a max life of 5 hours, this is currently true of all executor types.  
[https://circleci.com/docs/2.0/configuration-reference/#jobs](https://circleci.com/docs/2.0/configuration-reference/#jobs)

```auto
Note: Jobs have a maximum runtime of 5 hours. If your jobs are timing out, consider running some of them in parallel.

```

The `no_output_timeout` option is useful for keeping the machine open in the event there are long periods with no output as to not assume the container has crashed. However, no job can run for 5 hours or longer.

> is normal for it to take longer than 5 hours?

Almost certainly not but that would depend on what task you are attempting to perform. Most user’s jobs complete within minutes rather than hours.

If your job is suddenly taking unexpectedly more time than previously, we would recommend contacting support: [https://support.circleci.com/hc/en-us/requests/new](https://support.circleci.com/hc/en-us/requests/new)
