How to implement a process to run every 5 minutes inside a flask server to check everything is okay?

Solution
job = scheduler.add_job(myfunc, 'interval', minutes=5)