Within queries there is an option to run the query periodically but that is active only when the app is open in a browser.
It is a common requirement to run code in the back-end 24/7. Scripts like running batch process, or query which needs to trigger every hour to say fetch the weather temperature.