title: Running scheduled task in python
body: <p>I have a python script where a certain job needs to be done at say 8 AM everyday. To do this what i was thinking was have a while loop to keep the program running all the time and inside the while loop use <code>scheduler</code> type package to specify a time where a specific subroutine needs to start. So if there are other routines which run at different times of the day this would work.</p>
  <pre><code>def job(t):
      print &quot;I'm working...&quot;, t
      return
  
  schedule.every().day.at(&quot;08:00&quot;).do(job,'It is 08:00')
  </code></pre>
  <p>Then let windows scheduler run this program and done. But I was wondering if this is terribly inefficient since the while loop is waste of cpu cycles and plus could freeze the computer as the program gets larger in future. Could you please advise if there is a more efficient way to schedule tasks which needs to executed down to the second at the same time not having to run a <code>while loop</code>?</p>