Hi everyone,
I developped a multi user streamlit app.
On homepage there is a ‘refresh’ button which returns df = refresh()
I use the @cache_data on refresh() because it takes up to 2 minutes to update all data, and all user share the same output.
The problem I have is if a user wants to refresh the data when there is already an ongoing refresh by another user. It does create some troubles with my OData sessions (where my data come from).
Is there a way to check a status at the beginning of my refresh method, that would say someting like ‘on_going’ or ‘stop’, and would put it back to ‘stop’ for every user at the end of the refresh ?
Thankksss