1# to install schedule
2# RUN "python -m pip install schedule" in CMD
3
4import schedule
5import time
6
7def job():
8 print("I'm working...")
9
10schedule.every(10).minutes.do(job)
11schedule.every().hour.do(job)
12schedule.every().day.at("10:30").do(job)
13schedule.every().monday.do(job)
14schedule.every().wednesday.at("13:15").do(job)
15schedule.every().minute.at(":17").do(job)
16
17while True:
18 schedule.run_pending()
19 time.sleep(1)
20
1import schedule
2import time
3
4def job():
5 print("I'm working...")
6
7schedule.every(10).seconds.do(job)
8schedule.every(10).minutes.do(job)
9schedule.every().hour.do(job)
10schedule.every().day.at("10:30").do(job)
11schedule.every(5).to(10).minutes.do(job)
12schedule.every().monday.do(job)
13schedule.every().wednesday.at("13:15").do(job)
14schedule.every().minute.at(":17").do(job)
15
16while True:
17 schedule.run_pending()
18 time.sleep(1)
19