问题
Does anyone have any examples on how to integrate a task scheduler in Bottle. Something like APScheduler or sched?
回答1:
I would suggest threading it allows the webserver to be unaffected by the scheduled tasks that will either be in a queue or written into the code itself.
来源:https://stackoverflow.com/questions/10477310/is-it-possible-to-run-a-task-scheduler-in-bottle-web-framework