title: Schedule python clear jobs queue
body: <p>I’m a trying to use schedule as follows:</p>
  
  <pre><code>def job():
     my code
  
  schedule.every().day.at("06:03").do(job)
  schedule.every().day.at("09:56").do(job)
  
  while True:
     schedule.run_pending()
     sleep(1)
  </code></pre>
  
  <p>My job can’t take from 1 to 10 hours to finish executing.</p>
  
  <p>The problem that I’m having is this:</p>
  
  <p>Basically, when the first job runs (at 06:03) if the job takes around 10 hours, right when it ends it starts again because schedule runs all the jobs that it has been missing (in this case it missed the job at 09:56, and therefore it runs that).</p>
  
  <p>However what I want is that if the job takes very long the schedule that it has been missing doesn’t run right after, but it has to start again from the next schedule (in the example at 06:03). Simply put, if a schedule is missed, the “scheduler queue “ needs to be cleaned and start again from the next scheduled time. All the scheduled times missed don’t need to be ran.</p>