环境 windows,django,clery
启动命令: celery worker -A devops -l info -c 6
ERROR/MainProcess] Task handler raised error: ValueError('not enough values to unpack (expected 3, got 0)')
Traceback (most recent call last):
File "c:\users\lzjun\.virtualenvs\weihub-flask-j3runhkh\lib\site-packages\billiard\pool.py", line 358, in workloop
result = (True, prepare_result(fun(*args, **kwargs)))
File "c:\users\lzjun\.virtualenvs\weihub-flask-j3runhkh\lib\site-packages\celery\app\trace.py", line 544, in _fast_trace_task
tasks, accept, hostname = _loc
ValueError: not enough values to unpack (expected 3, got 0)
只需要改变启动命令,
celery worker -A devops -l info -c 6 --pool=solo
或者
pip install eventlet
celery -A devops worker --pool=eventlet
涉及windows平台的并发问题。