python repeating scheduler

Solutions on MaxInterview for python repeating scheduler by the best coders in the world

showing results for - "python repeating scheduler"
Maximilian
12 Feb 2018
1import schedule
2import time
3
4def job():
5   print("I'm working...")
6
7schedule.every(10).minutes.do(job)
8schedule.every().hour.do(job)
9schedule.every().day.at("10:30").do(job)
10
11while 1:
12   schedule.run_pending()
13   time.sleep(1)
14