Community
Articles
Topics
Q&A
Learn
Course
Programming Dictionary
Tools Library
Development tools
Website Source Code
PHP Libraries
JS special effects
Website Materials
Extension plug-ins
Leisure
Game Download
Game Tutorials
Log in
English
简体中文
zh-cn
English
en
繁体中文
zh-tw
日本語
ja
한국어
ko
Melayu
ms
Français
fr
Deutsch
de
Home
>
Q&A
>
body text
python - 如何在Flask应用中,执行定时任务。比如:每30秒执行某个任务?
如何在Flask应用中,执行定时任务。比如:每30秒执行某个任务?
黄舟
2803 days ago
928
reply all(1)
I'll reply
天蓬老师
2017-04-17 14:47:11
Shell scripts can be executed through crontab
Use Timer under threading to implement a Scheduler yourself. Here is an example https://gist.github.com/chadselph/4ff85c8c4f68aa105f4b
Use celery.
reply
0
Cancel
reply
publish