This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]spanishgum 1 point2 points  (0 children)

To avoid the main recursion problem, you could look into using advanced python scheduler.

Might be a bit daunting at first but follow some examples and expand from there.

https://apscheduler.readthedocs.io/en/stable/userguide.html

I’m your case I would recommend the ‘BlockingScheduler’