Runtime error Launch timed out, workload was not healthy after 30 min. This is happening every 30 mins

I just want to know is it my fault? because this is happening every 30 minutes. If not, how can i fix it. One more thing, Does the free tier of hf support only up to 30 mins?

1 Like

You can specify the timeout period to a certain extent, but the problem is that the program should not start up or crash until the timeout period is reached.:sweat_smile:

In most cases, the program is stuck in the installation process and is caught in an infinite loop, so you will probably need to fix the code.
Libraries are updated day by day, so even if a program used to work, there are often cases where you will need to make some small adjustments.

Hey @John6666 , I sincerely thank you for your reply. Now I know what mistakes I made and thus thank you a lot. BUT the problem is still the same because I want an infinite loop to run in the background( which basically connects my tg bot to hf space). Can you please guide me with a free option through it? Means a lot!

1 Like

Hmm…

I don’t think we could change the time until Spaces was paused, so if we wanted to do it, we’d have to keep restarting Spaces automatically via HfApi.

From Gradio, I think it would be easy to use every to start the function at regular intervals.

1 Like