I trying to use multiprocessing (Pool) in my streamlit app to spawn off some compute intensive tasks as child processes. The app in multiprocessing mode works fine when a single user is using the app. However, when another user tries to use the app concurrently, the child processes get stopped (they don’t close). Why does this happen?
Is there a way to avoid this issue?