The common train-of-thought is "I'm just gonna check _____ for a second while this runs." And then it's never just a second.
What do you do?
I used to check random stuff on the internet ( social media , HN, reddit or youtube) but I found them very distractive. So, I ended up picking something that are not related to internet.
2. Research ways to optimize/automate the long-running task.
When working from home I have some weights on my desk, I do a few quick exercises.