start read_mails between 10:30 and 19:30

This commit is contained in:
2022-10-13 16:25:33 +02:00
parent 237787a391
commit 159d9e3811
3 changed files with 51 additions and 31 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ from src.mail.mail_reader import read_mails
def start_check_mail_job(sched):
sched.add_job(read_mails, 'cron', day_of_week='mon-sat', minute='*/15', jitter=240, timezone='Europe/Paris',
sched.add_job(read_mails, 'cron', day_of_week='mon-sat', hour='10-19', minute='*/15', jitter=240,
timezone='Europe/Paris',
max_instances=1)
# sched.add_job(read_mails, 'cron', day_of_week='mon-sat', hour='11',
# minute='30',