python - 如何在Flask应用中,执行定时任务。比如:每30秒执行某个任务?
黄舟
黄舟 2017-04-17 14:45:11
0
1
873

如何在Flask应用中,执行定时任务。比如:每30秒执行某个任务?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
Peter_Zhu
  • 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.
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!