Aug-19-2019, 02:09 AM
import time import schedule def job(): import asdf_1 # "asdf_1" is a .py file that runs fine on its own schedule.every().day.at("13:00").do(job) while True: schedule.run_pending() time.sleep(1)the above code only runs once at the first 13:00 mark. it doesn't run the next day or the day after or ever. why? i know crontab is a more versatile (and perhaps reliable) scheduling module. but at this point i'm more curious why the "schedule" module doesn't work in this case.