https://softwarepatternslexicon.com/python/concurrency-patterns/scheduler-pattern/task-scheduling/
Task Scheduling in Python: Optimizing Performance and Responsiveness