[Python] My program keeps stopping randomly despite my laptop being on

Discussão em 'Python' iniciado por Stack, Junho 16, 2025.

  1. Stack

    Stack Membro Participativo

    Every two months I am running a python program that has to stay turned on for 2 days +/- on my laptop. Despite turning off every single setting that forces it to sleep and keeping it plugged in, my program stops randomly after a handful of hours without the laptop itself going to sleep. There is no error in the output, and I know the code isn't the problem because I used to do the same thing on my old laptop and it never had such an issue. I am running that program in VS Code, and my system model is XPS 13 9345.

    Any ideas on what to do?

    I have tried looking for solutions and they all talk about changing the "Power, sleep, battery Settings". I have changed all my settings to prevent it from sleeping from inactivity/closing the screen, and it is still not working. I am expecting my program to continuously run for 2 days +/- until I decide to stop it.

    Continue reading...

Compartilhe esta Página