atom-python-run icon indicating copy to clipboard operation
atom-python-run copied to clipboard

Leaves background python processes running

Open yobson1 opened this issue 6 years ago • 3 comments

After running a python script using this package it sometimes leaves a background python process running that always uses about 9% CPU. I tried re-installing the package and re-installing python. Neither solved the issue.

Here is what I see in task manager: https://i.imgur.com/8zdfU0m.png

Sometimes this can be several background processes, as it will sometimes create the process and sometimes it wont, so if I have ran the file a few times there could be several.

yobson1 avatar Apr 10 '19 00:04 yobson1

Known issue. 25% CPU for me. This problem have lasted long and I cannot fix it. Need help. One naive solution is to manually run taskkill after using atom.

foreshadow avatar Jun 26 '19 12:06 foreshadow

And I wonder if all users are experiencing this, because this problem bothered me about two years and this is the first issue reporting this. Add +1 to the first comment if you do.

foreshadow avatar Jun 26 '19 12:06 foreshadow

I have many a student who is experiencing a similar thing with IDLE on Windows. I know this is not related to IDLE at all, I just wanted to mention that it seems even the IDLE-devs can not get Windows to close the launched python process.

I've never looked at the task manager on my student's computers, but if they use IDLE's F5-to-run functionality to launch a Flask application like the one below, they can only run it once because the second time the port is reported to already be in use. That to me sounds like the python process launched is not killed.

if __name__ == "__main__":
    app.run(0.0.0.0, port=5000)

jonascj avatar Jul 31 '19 10:07 jonascj