码迷,mamicode.com
首页 > 其他好文 > 详细

celery 启用worker ValueError: not enough values to unpack

时间:2019-07-25 00:22:44      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:RoCE   hostname   handler   启用   ack   received   expec   values   fun   

[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

 

celery 启用worker ValueError: not enough values to unpack

标签:RoCE   hostname   handler   启用   ack   received   expec   values   fun   

原文地址:https://www.cnblogs.com/GetcharZp/p/11241444.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!