报错信息
RuntimeError: Running a worker with superuser privileges when the worker accepts messages serialized with pickle is a very bad idea! If you really want to continue then you have to set the C_FORCE_ROOT environment variable (but please think about this before you do).
- 解决办法
- 在celery.py文件中导入celery的platforms模块
- 添加
platforms.C_FORCE_ROOT = True
如图:
评论 (0)