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

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fis-there-a-timeout-max-runtime-for-spaces%2F12979%3E%5C
**Category:** Spaces\
**Created:** [December 20, 2021, 11:25am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fis-there-a-timeout-max-runtime-for-spaces%2F12979 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FEpoching)%5C
**Post date:** [December 21, 2021, 2:03am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fis-there-a-timeout-max-runtime-for-spaces%2F12979%2F2 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fis-there-a-timeout-max-runtime-for-spaces%2F12979)._
