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?
Can you share your code so we can see what you have tried? If you can create a simplified, executable example to demonstrate how you’ve set up you multiprocessing, that will help the community identify your pain point. In general, it comes down to juggling session state and caching.