AutoTrain - Space Automatically Pauses During Training

Does this work for non AutoTrain apps?

You can explicitly pause a Space via the HF API or GUI, but auto-pause is an AutoTrain feature, so it shouldn’t be present in a regular FastAPI app unless you consciously implement it… probably.

Sleep states or infinite restarts due to crashes are relatively common.