Celery raises ValueError: not enough values to unpack

后端 未结 5 1189
误落风尘
误落风尘 2021-01-31 00:00

Trying to run simple example with Celery and receiving an exception. RabbitMQ started in a Docker, also tried to start it locally. Celery works on a local Windows host



        
5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 00:56

    Celery 4.0+ does not officially support Windows yet. But it still works on Windows for some development/test purposes.

    Use eventlet instead as below:

    pip install eventlet
    celery -A  worker -l info -P eventlet
    

    It works for me on Windows 10 + celery 4.1 + python 3.

    ===== update 2018-11 =====

    Eventlet has an issue on subprocess.CalledProcessError:

    https://github.com/celery/celery/issues/4063

    https://github.com/eventlet/eventlet/issues/357

    https://github.com/eventlet/eventlet/issues/413

    So try gevent instead.

    pip install gevent
    celery -A  worker -l info -P gevent
    

    This works for me on Windows 10 + celery 4.2 + python 3.6

提交回复
热议问题