# How can I force a timeout with gradio on HF spaces?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-force-a-timeout-with-gradio-on-hf-spaces%2F70361%3E%5C
**Category:** Spaces\
**Created:** [January 24, 2024, 6:31am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-force-a-timeout-with-gradio-on-hf-spaces%2F70361 "2024-01-24T06:31:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheoLvs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/theolvs/32/23252_2.png) [@TheoLvs](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FTheoLvs)%5C
**Post date:** [January 24, 2024, 6:31am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-force-a-timeout-with-gradio-on-hf-spaces%2F70361%2F1 "2024-01-24T06:31:13Z")

</div>

Hello, I am working on my space [ClimateQ&A - a Hugging Face Space by Ekimetrics](https://huggingface.co/spaces/Ekimetrics/climate-question-answering)  
And I was wondering if it was possible to force a timeout error for my chatbot.  
Because sometimes because of the free tier on my pinecone vector database, if the service is unavailable the user question can run for 10 minutes before timing out and returning an error. I would want to force a timeout error in my callback event after 1 minute ?
