Running nested scheduler with cron as outer and interval as inner triggers

19 views
Skip to first unread message

Coding Ninja

unread,
Feb 2, 2022, 1:49:21 AM2/2/22
to APScheduler
Hi,

I am using scheduler in nested fashion.
Outer  Scheduler   -> cron -> runs mon-fri at every 12th hour

Inner Scheduler -> interval -> runs every 5 mins

I have included end_date in inner scheduler job as
end_date = datetime.today().replace(hour=23,minute=59,seconds=59)

i.e I want the inner scheduler to have max running time till the day end
However, the inner scheduler stops in an hour itself

Can you advise on a fix?
Reply all
Reply to author
Forward
0 new messages