Celery valueerror: not enough values to unpack (expected 3, got 0) Solution

Source: Internet
Author: User

Recently, due to project requirements, when using the task queue celery, if a problem occurs, find a solution on GitHub and record it.

Running Environment: win10 + python3 + redis 2.10.6 + celery 4.2.1

This problem occurs when celery4.x is run on win10. When the task queue is enabled, everything is normal (the ready prompt is displayed). Once the task is accepted, valueerror: not enough values to unpack (expected 3, got 0) is reported) the solution is as follows:

1. First install an extended eventlet
 
PIP install eventlet
2. Add the-P eventlet parameter when starting worker, as shown below:
 
Celery-A <mymodule> worker-l Info-P eventlet

The above two steps perfectly solve the problem and the principle remains to be further explored.

Celery valueerror: not enough values to unpack (expected 3, got 0) Solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.