Polling API in background for status change

This type of thing is best implemented as a custom component. It’ll run independently of Streamlit’s execution cycle.

You could also take a look at @andfanilo’s example for motivation.

2 Likes