跳转到主要内容

endi_celery

项目描述

从版本6开始,endi-celery仅支持python 3。

异步任务通过celery执行。pyramid_celery用于将celery与Pyramid相关内容集成。pyramid_beaker用于缓存响应。

任务

从enDI调用的异步任务

调度器

周期任务,随时间重复执行(如cron任务)

结果

没有使用结果后端,任务直接与enDI的数据库交互以返回数据。

enDI celery提供了所有应用于存储与任务执行相关内容的模型(请参阅endi_celery.models)。

安装

系统软件包

autonmie_celery需要redis服务器才能运行

在Debian上

apt-get install redis-server

在Fedora上

dnf install redis-server

Python软件包

endi_celery应在与enDI相同的环境中运行:https://framagit.org/endi/endi

您可能首先运行

workon endi
git clone https://framagit.org/endi/endi_celery.git
cd endi_celery
python setup.py install
cp development.ini.sample development.ini

根据需要自定义开发.ini文件

启动它

使用以下命令启动工作守护进程

celery worker -A pyramid_celery.celery_app  --ini development.ini

使用以下命令启动beat守护进程

celery beat -A pyramid_celery.celery_app --ini development.ini

根据不同的通用_ledger文件自定义会计操作解析器和生产者

在您的celery服务ini文件中配置服务工厂

Sage(默认)

endi_celery.interfaces.IAccountingFileParser=endi_celery.parsers.sage.parser_factory
endi_celery.interfaces.IAccountingOperationProducer=endi_celery.parsers.sage.producer_factory

Sage生成专家

endi_celery.interfaces.IAccountingFileParser=endi_celery.parsers.sage_generation_expert.parser_factory
endi_celery.interfaces.IAccountingOperationProducer=endi_celery.parsers.sage_generation_expert.producer_factory

Quadra

endi_celery.interfaces.IAccountingFileParser=endi_celery.parsers.quadra.parser_factory
endi_celery.interfaces.IAccountingOperationProducer=endi_celery.parsers.quadra.producer_factory

项目详情


发布历史 发布通知 | RSS源

下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

endi_celery-6.7.8.tar.gz (60.8 kB 查看散列值)

上传时间

构建分布

endi_celery-6.7.8-py3-none-any.whl (69.3 kB 查看散列值)

上传时间 Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面