Although there’s no hard and fast rule for how long an indoor training session should last, we would generally advise that anything up to two hours is the limit.
This is because you work harder on a turbo trainer than when riding outdoors, as there are no downhill sections to recover. Instead you’re putting effort in the whole time. Plus, your riding position is more rigid when on a turbo trainer, meaning you’re working the same muscle groups for extended periods of time.
It is more important to create shorter, high-quality training sessions than longer ones. When it comes to turbo trainers, it’s a matter of quality over quantity.