Aug-30-2019, 01:31 AM
I didn't use schedule module before, but it seems from docs that you need to run it in an infinite loop, i.e. your code should be something like this:
import schedule import time def job(): print("I'm working...") print("hi at %s" % time.ctime()) schedule.every().day.at("23:06").do(job) schedule.every().day.at("23:08").do(job) while True: schedule.run_pending() time.sleep(1)