Hey! For Python run app in process, I’d recommend `multiprocessing` if you’re doing parallel work. It’s way cleaner than `subprocess` for internal tasks.
One thing to watch out for is forgetting to close your processes. I’ve had apps hang because I didn’t call `terminate()` or `join()`.
Also, `concurrent.futures` is a nice alternative to raw `multiprocessing`. It’s a bit easier to use and less error-prone.
One thing to watch out for is forgetting to close your processes. I’ve had apps hang because I didn’t call `terminate()` or `join()`.
Also, `concurrent.futures` is a nice alternative to raw `multiprocessing`. It’s a bit easier to use and less error-prone.
