是否有可能在Bottle Web Framework中运行任务计划程序 [英] is it possible to run a task scheduler in bottle web framework

查看:70
本文介绍了是否有可能在Bottle Web Framework中运行任务计划程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都没有有关如何在Bottle中集成任务计划程序的示例。像APScheduler或sched之类的东西?

Does anyone have any examples on how to integrate a task scheduler in Bottle. Something like APScheduler or sched?

推荐答案

我建议进行线程化,使网络服务器不受预定任务的影响,而预定任务将是在队列中或写入代码本身。

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.

这篇关于是否有可能在Bottle Web Framework中运行任务计划程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆