数据库支持的定期任务。
dbeat的Python项目详细描述
数据库支持的定期任务
name | value |
---|---|
Version | 1.0.0 |
Download | http://pypi.python.org/pypi/dbeat |
Source | http://github.com/aohan237/dbeat |
Keywords | peewee, celery, beat, periodic task, cron, scheduling |
为什么选择此模块
也许你的项目管理基于django(django芹菜拍子就足够了) 但是如果你的应用或项目不是基于django的,那么django orm很难使用。 这就是模块的目的
使用扩展名
安装模块
python setup.py install
芹菜应用程序中的初始数据库
from peewee import SqliteDatabase
database = SqliteDatabase('app.db')
app.database = database
开始节拍
celery -A proj beat -l info --scheduler dbeat.schedulers:DatabaseScheduler