Putin has signaled repeatedly that he is open to a peace deal of some sort, and the accumulating damage to Russia is more severe than is generally realized. The critical imponderables for Ukraine are Western support and the prospects for a coup against Putin. For the US and Europe, the Ukraine War is integral to security challenges around the world, with continuing losses or a defeat a plus. My guess is that the war will continue.
The Russians have always fought their wars like this.
If Trump wins, there will be a ceasefire signed by January 2025.