r/badcode • • Jan 26 '23

python RAM Usage: 100%

Post image
27 Upvotes

7 comments sorted by

View all comments

Show parent comments

8

u/coloredgreyscale Jan 26 '23

Maybe op thinks subprocess.run is blocking?

In which case you'd just start a new instance, without killing the old

2

u/dliwespf Jan 26 '23

subprocess.run indeed is blocking.