× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

scheduling events with a while loop and time.sleep

Stefan Georg
Mar 03, 2015
<p>you can schedule events to run every hour in python with a simple <br> while True:</p> <p>   do something</p> <p>   time.sleep(3600)</p> <p> </p> <p>and it will "do something" every 60 minutes after you first run the script, assuming your do something doesn't take long to run.</p>
comments powered by Disqus