celery 启用worker ValueError: not enough values to unpack

[2018-01-12 19:08:15,545: INFO/MainProcess] Received task: tasks.add[5d387722-5389-441b-9b01-a619b93b4702]
[2018-01-12 19:08:15,550: ERROR/MainProcess] Task handler raised error: ValueError('not enough values to unpack (expected 3, got 0)',)
Traceback (most recent call last):
File "d:\programmingsoftware\python35\lib\site-packages\billiard\pool.py", line 358, in workloop
result = (True, prepare_result(fun(*args, **kwargs)))
File "d:\programmingsoftware\python35\lib\site-packages\celery\app\trace.py", line 525, in _fast_trace_task
tasks, accept, hostname = _loc
ValueError: not enough values to unpack (expected 3, got 0)
--------------------------------------------------------------------------------------------------------------------------------------------------------------

celery worker -A tasks -l INFO 报错解决办法

1、安装 eventlet

pip install eventlet

2、输入以下命令启用worker

celery -A tasks worker -l INFO -P eventlet

 

posted @ 2019-07-24 22:56  GetcharZp  阅读(244)  评论(1编辑  收藏  举报