From 138b4a087b55ba88d058e30f7181318ec8090f44 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Tue, 9 Aug 2022 12:52:18 +0200 Subject: [PATCH] prolong the handle of emails --- mail_scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_scheduler.py b/mail_scheduler.py index b03bf22..ba37407 100644 --- a/mail_scheduler.py +++ b/mail_scheduler.py @@ -13,11 +13,11 @@ def start_check_mail_job(sched): minute='30', misfire_grace_time=10, second='0', timezone='Europe/Paris', max_instances=1) - sched.add_job(read_mails, 'cron', day_of_week='mon-sat', hour='12', + sched.add_job(read_mails, 'cron', day_of_week='mon-sat', hour='13', minute='30', misfire_grace_time=10, second='0', timezone='Europe/Paris', max_instances=1) - sched.add_job(read_mails, 'cron', day_of_week='mon-sat', hour='14', + sched.add_job(read_mails, 'cron', day_of_week='mon-sat', hour='15', minute='30', misfire_grace_time=10, second='0', timezone='Europe/Paris', max_instances=1)