Rebooting(clearing memory) of an app on a schedule

Hey guys,
Curious if anyone has had any success with scheduling a full app reboot on streamlit cloud at certain intervals. I have a memory intensive app with 5+ users that can go around a day or so before reaching memory limits and requiring a reboot. Was wondering if there was a way to just have it reboot automatically at midnight every night.