Hey everyone,
So, I’ve been trying to figure out how to Python run app in new process, and I’m kinda stuck. I know there are a few ways to do it, like using `subprocess` or `multiprocessing`, but I’m not sure which one’s the best for my use case.
I’ve got this app that needs to run independently, and I don’t want it to block the main script. Any tips on the best practices here? Like, should I be worried about memory leaks or zombie processes?
Also, is there a way to make sure the new process closes cleanly if something goes wrong? I’ve heard `atexit` might help, but idk if that’s overkill.
Thanks in advance for any advice! Cheers.
So, I’ve been trying to figure out how to Python run app in new process, and I’m kinda stuck. I know there are a few ways to do it, like using `subprocess` or `multiprocessing`, but I’m not sure which one’s the best for my use case.
I’ve got this app that needs to run independently, and I don’t want it to block the main script. Any tips on the best practices here? Like, should I be worried about memory leaks or zombie processes?
Also, is there a way to make sure the new process closes cleanly if something goes wrong? I’ve heard `atexit` might help, but idk if that’s overkill.
Thanks in advance for any advice! Cheers.
