Hey, I’ve had the same issues with Python run app in process. It’s tricky, but `subprocess` is usually the way to go for external apps.
One thing that helped me was using `Popen` with `communicate()` to avoid deadlocks. Also, make sure to handle signals properly for clean termination.
For memory leaks, `tracemalloc` is a great tool. It’s built into Python and super helpful for debugging.
One thing that helped me was using `Popen` with `communicate()` to avoid deadlocks. Also, make sure to handle signals properly for clean termination.
For memory leaks, `tracemalloc` is a great tool. It’s built into Python and super helpful for debugging.
