title: Using Schedule to run jobs at certain times
body: <p>I am trying to schedule a few jobs and thanks to stackoverflow I was able to find Schedule (<a href="https://pypi.python.org/pypi/schedule" rel="nofollow">https://pypi.python.org/pypi/schedule</a>).</p>
  
  <p>Unfortunately this isn't documented very well. I have a list of jobs I am trying to run, each with a certain time in a single day that it is supposed to be run.</p>
  
  <pre><code>for i in jobArray:
      # compareTimes returns a boolean that indicates if it's time to run it, assume it works.
      if compareTimes(i.time):
          # I want to schedule this job for a specific time, i.time
          schedule.every().day.do(job)
  while 1:
      schedule.run_pending()
      time.sleep(60)
  </code></pre>
  
  <p>This is what I came up with. Obviously this is wrong (it gets stuck in the while loop). There is no documentation for .run_pending() so I don't know how to fix it to get it to work. Please assist.</p>
  
  <p>Thanks.</p>