celery / celery

Distributed Task Queue (development branch)
https://docs.celeryq.dev
Other
24.79k stars 4.67k forks source link

Redis ResponseError: Wrong number of arguments for 'subscribe' command #6993

Open Venkatesh283 opened 3 years ago

Venkatesh283 commented 3 years ago

Checklist

Mandatory Debugging Information

Optional Debugging Information

Related Issues and Possible Duplicates

Related Issues

Environment & Settings

Celery version:


software -> celery:5.1.2 (sun-harmonics) kombu:5.1.0 py:3.8.10
            billiard:3.6.4.0 py-amqp:5.0.6
platform -> system:Linux arch:64bit, ELF
            kernel version:5.4.0-88-generic imp:CPython
loader   -> celery.loaders.default.Loader
settings -> transport:amqp results:disabled

deprecated_settings: None

Steps to Reproduce

Required Dependencies

Python Packages

pip freeze Output:

``` amqp==5.0.6 anyio==3.3.2 asgiref==3.4.1 billiard==3.6.4.0 block-timer==0.2.0 catalogue==1.0.0 celery==5.1.2 certifi==2021.5.30 fastapi==0.70.0 fasttext==0.9.2 fuzzywuzzy==0.18.0 geotext==0.4.0 h11==0.12.0 hjson==3.0.2 kombu==5.1.2 pydantic==1.8.2 pyenchant==3.2.2 PyJWT==2.2.0 pymongo==3.12.0 pyparsing==2.4.7 python-datauri==1.0.0 python-dateutil==2.8.2 python-decouple==3.5 python-json-logger==2.0.2 python-Levenshtein==0.12.2 pytz==2021.3 redis==3.5.3 regex==2021.9.30 requests==2.26.0 scikit-learn==0.22.2.post1 scipy==1.7.1 seaborn==0.11.2 urllib3==1.26.7 uvicorn==0.15.0 vine==5.0.0 Wand==0.6.7 wasabi==0.8.2 wcwidth==0.2.5 xlrd==2.0.1 ```

Minimally Reproducible Test Case

I'm Using celery with FastAPI and uvicorn as web server. Redis as broker/backend. This issue occurs exactly, when I try using fetch the result using get() method ``` result = task.get(timeout=60, interval=0.5) ``` Command used to start the worker, ``` celery -A proj worker -l INFO --concurrency=6 -n worker0 --without-gossip --without-mingle -Ofair ```

Expected Behavior

Actual Behavior

open-collective-bot[bot] commented 3 years ago

Hey @Venkatesh283 :wave:, Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our Open Collective and consider backing us - every little helps!

We also offer priority support for our sponsors. If you require immediate assistance please consider sponsoring us.

yangxiaomaomao commented 3 years ago

Hello, I have met the same question while using celery. When I use the get() to obtain the result from redis, often it works, but sometimes it fails and reports the same traceback as the above you mention. If you have solved the problem, could you help me the way? Thank a lot.

auvipy commented 2 years ago

check the related patch please

hexvolt commented 2 years ago

Unfortunately, it's still an issue https://github.com/celery/celery/pull/7040#issuecomment-1040785011

thedrow commented 2 years ago

@hexvolt Did you try master?