Hey everyone,
So, I’ve been trying to figure out how to properly use Python to run an app in process, but I keep running into some weird issues. Like, sometimes the app just hangs or doesn’t terminate cleanly. Anyone else dealt with this?
What are the best practices for using Python to run an app in process? I’ve heard about using `multiprocessing` or `subprocess`, but not sure which one’s better for my use case.
Also, what are some common pitfalls when you Python run app in process? I’ve seen stuff about zombie processes or memory leaks, but not sure how to avoid them.
Any tips or examples would be super helpful! Thanks in advance
P.S. Sorry if this has been asked before, I did a quick search but couldn’t find exactly what I was looking for.
So, I’ve been trying to figure out how to properly use Python to run an app in process, but I keep running into some weird issues. Like, sometimes the app just hangs or doesn’t terminate cleanly. Anyone else dealt with this?
What are the best practices for using Python to run an app in process? I’ve heard about using `multiprocessing` or `subprocess`, but not sure which one’s better for my use case.
Also, what are some common pitfalls when you Python run app in process? I’ve seen stuff about zombie processes or memory leaks, but not sure how to avoid them.
Any tips or examples would be super helpful! Thanks in advance
P.S. Sorry if this has been asked before, I did a quick search but couldn’t find exactly what I was looking for.
