moodleNotifer

clockinterval.py
Go to the documentation of this file.
1
5 from apscheduler.schedulers.blocking import BlockingScheduler
6
7 from .timely_update import send_update_to_students
8 from .timely_update import update_database_daily
9 # def job_function():
10 # print("Hello World")
11
12
14 def sendupdates():
15 sched = BlockingScheduler()
16 sched.add_job(update_database_daily, 'interval', seconds=10)#hours=2
17 sched.add_job(send_update_to_students, 'interval', seconds=200)#hours=2
18 sched.start()