clock.py

Home   »   clock.py

from apscheduler.schedulers.blocking import BlockingScheduler
from run import sendMail

sched = BlockingScheduler()

@sched.scheduled_job('cron', day_of_week='mon-fri', hour=8)
def scheduled_job():
    print('This job is run every weekday at 8 AM.')
    sendMail()
sched.start()

Leave a Reply

Your email address will not be published. Required fields are marked *