Skip to content

Instantly share code, notes, and snippets.

@tasinttttttt
Created May 7, 2015 21:26
Show Gist options
  • Save tasinttttttt/5a89a38eb0290542976c to your computer and use it in GitHub Desktop.
Save tasinttttttt/5a89a38eb0290542976c to your computer and use it in GitHub Desktop.
import schedule
import time
def job():
print("I'm working...")
schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)
while 1:
schedule.run_pending()
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment