I did a lot of changes. But I believe the essential parts are
- I turned Always On on in Azure
- I created a script that runs inside my docker container to ping awesome-streamlit.org every 5 minutes
- I removed the custom import_lib.reload functionality I was using (for development) to reload deeply nested modules. See the issue here https://github.com/streamlit/streamlit/issues/366
- I set
folderWatchBlacklist = ['']
in the config.toml file.
In order to investigate the issue I had to add detailed logging to my docker continer, especially timestamp every line into the log and log top
resource usage every 1 minutes. I have a request for time in the loggingFormatter here https://github.com/streamlit/streamlit/issues/447.
I believe item 1 and either 3 or 4 did the trick. But I have not reproduced. Just happy that it works after so many investigations.
I’ve recorded the full investigation here