While actively processing data space times out at set limit

I have a space that fine tunes data. It’s set to time out after 1 hour. After an hour of processing data (I see the cpu and gpu % going up and down) and I know it takes at least 90 min to finish the data processing the model just goes to sleep. I’m getting charged for this but it’s wasted money. I’d imagine that if I’m actively using resources then the timeout wouldn’t go into effect; that it would be and hour of idle time.
The next timeout is 10 hours. That seems like an extreme jump.
I don’t want to sit in fron to my monitor diddling the screen to try to keep a space alive.
Any advice?
Thanks in advance.

1 Like

You might be able to set it using this.

Another possibility is to set a timeout for your Space. If your Space is inactive for more than the timeout duration, it will go to sleep. Any visitor landing on your Space will start it back up. You can set a timeout using set_space_sleep_time(). For more details about sleeping mode, please refer to this section.

# Put your Space to sleep after 1h of inactivity

api.set_space_sleep_time(repo_id=repo_id, sleep_time=3600)