Run Your Flask Regularly Scheduled Jobs with Cron

1 · Miguel Grinberg · July 20, 2020, 10:40 a.m.
Summary
A common need of web applications is to have a periodically running task in the background. This could be a task that imports new data from third party sources, or maybe one that removes revoked tokens from your database once they have expired. In this and many other situations you are faced with the challenge of implementing a task that runs in the background at regular intervals. This is a pattern that many people ask me about. I've seen implementations that are based on the APScheduler packa...