Cancel auto-refresh app in the cloud

There are two sides to this behavior: the library and Community Cloud. A websocket connection on Community Cloud can time out which I think is the primary source of this issue. However, Streamlit 1.38 did include an improvement that is supposed to prevent apps from rerunning on websocket reconnection (unless a run was interrupted). Therefore, I would expect a little improvement with version 1.38.

I can ask internally about your case @andrew-weisman since you show a five-minute reconnect cycle but say you’re on 1.39. Please can you share links to your app and repository? If not, then even better, can you reproduce the behavior with a minimal deployed example and link to that?