自治区
autonomie-celer的Python项目详细描述
异步任务通过芹菜执行。 金字塔芹菜是用来整合芹菜与金字塔相关的东西。 金字塔烧杯用于缓存响应。
任务:
Asynchronous tasks called from Autonomie
计划程序:
Beat tasks, repeated along the time (like cron tasks)
结果
没有使用结果后端,任务直接与Autonome的数据库交互 返回数据。
Autonomie芹菜提供了用于存储任务的所有模型 与执行相关的东西(见Autonomie_Celery.Models)。
安装
系统包
autonmie_芹菜需要redis服务器才能运行
关于debian
apt-get install redis-server
在软呢帽上
dnf install redis-server
python的东西
Autonomie椆芹菜应在Autonomie相同的环境中运行: https://github.com/CroissanceCommune/autonomie
您可以先运行
workon autonomie
git clone https://github.com/CroissanceCommune/autonomie_celery.git
cd autonomie_celery
python setup.py install
cp development.ini.sample development.ini
根据需要自定义development.ini文件
启动它
启动以下命令以启动工作进程:
celery worker -A pyramid_celery.celery_app --ini development.ini
启动以下命令以启动beat后台程序:
celery beat -A pyramid_celery.celery_app --ini development.ini