随笔分类 - celery
摘要:celery任务队列使用 项目架构 . ├── broker │ ├── __init__.py │ ├── cron.py │ └── req.py ├── config │ ├── __init__.py │ ├── dev.py │ └── prod.py ├── task │ ├── __i
阅读全文
摘要:开发环境 ubuntu 18.04 + python3.6.9 / windows10 + python 3.6.9 安装依赖 # 安装django==2.2.17 pip install django==2.2.17 # 安装celery == 4.4.0 pip install celery==
阅读全文
摘要:一、流程 二、准备工作 1. celery4.4.0文档 "https://docs.celeryproject.org/en/stable/" 2. 安装模块 3. 在根目录下新建celery_tasks/celery.py 4. celery.py 文件 5. 配置文件config.py 三、启
阅读全文