title: How to schedule a python function to run every hour at specific minute (ex 00, 10, 20) with apscheduler
body: <p>I try to schedule a function within my script to run at a specific minute every hour, i.e. if my script starts running at 11.46 my function to run at 11.50, 12.00, 12.10 etc and to do the same thing if it fails and restarts. I have seen that it is possible to do this with cron from command line but is there a way to do it while the script is running with a scheduler?</p>
  
  <p>I have already created a scheduler which runs every 10 minutes after my script starts, but I want my function to run on specific minutes not just specific intervals.</p>
  
  <pre><code>from apscheduler.schedulers.background import BackgroundScheduler
  import atexit
  
  def demo_job:
      print("test")
  
  try:
      sched = BackgroundScheduler(daemon=True)
      sched.add_job(demo_job, trigger='interval', minutes=10)
      sched.start()
      atexit.register(lambda: sched.shutdown(wait=False))
  except:
      print("Unexpected error:")
  </code></pre>
  
  <p>If my script starts running at 11.47 the first scheduled call of my function is at 11.57, the next at 12.07, 12.17 etc... I want the first run to be at 12.00, the next at 12.10, 12.20 etc</p>