Is it possible to include a kind of scheduler within Streamlit?

Hey @dirk!

This is not something we support natively today. You can have a look at this component st-auto-refresh but while it will rerun the app on a regular interval within a viewer’s session, I believe as such it won’t ensure a task to run at a specific interval, regardless viewers or sessions. Give it a try!

On another note, you could throw an eye at databutton which enables you to build Streamlit apps and also offers services on top, like a decorator to schedule tasks @db.jobs.repeat_every(seconds=60 * 10, name="Check hackernews"). Looks pretty tailored to your need, but I never tried and don’t know how flexible that is!

1 Like