# Is there a timeout (max runtime) for spaces?

**URL:** <https://discuss.huggingface.co/t/is-there-a-timeout-max-runtime-for-spaces/12979>\
**Category:** Spaces\
**Created:** [December 20, 2021, 11:25am UTC](https://discuss.huggingface.co/t/is-there-a-timeout-max-runtime-for-spaces/12979 "2021-12-20T11:25:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Epoching](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/epoching/32/3493_2.png) [@Epoching](https://discuss.huggingface.co/u/Epoching)\
**Post date:** [December 21, 2021, 2:03am UTC](https://discuss.huggingface.co/t/is-there-a-timeout-max-runtime-for-spaces/12979/2 "2021-12-21T02:03:41Z")

</div>

Update: Making a simple app.py:

- Input an image
- sleep for 70 seconds
- Output the same image

This results in the same thing (timing out after 60 seconds)  
When changing the sleep to 50 seconds, it’s able to return the image.

---

_[View the full topic](https://discuss.huggingface.co/t/is-there-a-timeout-max-runtime-for-spaces/12979)._
