Forums

Killing running processes

Is it possible for PythonAnywhere developpers to make some effort in trying NOT to kill running processes (at least for paid users) while restarting? I'm getting fed up to restart again and again the same scripts that were assumed to run forever...

Thank you in advance.

We can't and don't make any promises that your processes will run forever. If you want things to run consistently, your best course of action is to perform small parts of the task in a scheduled task. That way, if we restart or upgrade, your task will automatically be restarted.

Further to what @Glenn said above, there's no practical way that a virtualised service like PA can guarantee that persistent tasks won't be restarted. The best that they could manage is some service where they'll automatically restart a process whenever it terminates. You can achieve something like this yourself right now by having a simple scheduled task which does that.

The PA service of automatic restarts has been discussed before, and I think the PA devs acknowledge that it would be useful but they're really busy right now so there's currently no definitive answers as to if or when it'll appear as a feature.