Webhook to get notified when app goes inactive

Hello,

Is there a way to get notified when Streamlit app is paused due to inactivity and becomes active again? I have a use case which requires running an EC2 instance in AWS in addition to the Streamlit app. I would like to start / stop my EC2 instance depending on the app state.

Thank you,
Evgeny

Hi! There isn’t any way to be notified at the moment. As we invest in improving the wakeup time, we will also pause them sooner. You can try having some sort of metric emitted from your application and if that stops, the ECs instance can be spun down.

1 Like

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