App Callback run at specific time of the day

I have an app that has a live connection to a database throughout the day. If the connection lasts until later at night, the connection will get killed and my app is still running with a closed connection with no way of starting it back up.

Can you program an app callback to excuse at a certain time of the day? That way I can create a function to open the connection at time t and close the connection at time T.

I don’t believe this is possible, but you could instead check out the updates on page load section of the docs and refresh your database connection each time a user refreshes the page? Presumably all you care about is that when the user visits the page, the connection is available?