On-session-shutdown hook?

I am using Python 3.11 and Streamlit 1.28.1.

I am wondering, is there some hook/callback one can use when a Streamlit session is shutting down?

I want to call a function when an overall Streamlit session is shutting down.

1 Like

Hey @jamesbraza,

Unfortunately, this is not currently supported, but feel free to open a feature request here so our product and engineering teams can take a look.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.