title: How to schedule a function in Flask App daily at every 5 minutes in Python
body: <p>I would like to know how the <code>check</code> function can be executed everyday at 5 minutes interval.</p>
  <pre><code>import time
  from flask import Flask
  
  def check():
      print(time.time())
  
  
  app = Flask(__name__)
  
  if __name__ == '__main__':
      app.run()
  </code></pre>
  <p><strong>Update</strong></p>
  <p>I tried the below but nothing happended.</p>
  <pre><code>from apscheduler.triggers.combining import AndTrigger
  from apscheduler.triggers.interval import IntervalTrigger
  from apscheduler.triggers.cron import CronTrigger
  
  
  trigger = AndTrigger([IntervalTrigger(minutes=5),
                        CronTrigger(day_of_week='mon,tue,wed,thu,fri)])
  scheduler.add_job(job_function, trigger)
  </code></pre>