Open Venkatesh283 opened 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.
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.
check the related patch please
Unfortunately, it's still an issue https://github.com/celery/celery/pull/7040#issuecomment-1040785011
@hexvolt Did you try master?
Checklist
master
branch of Celery.Mandatory Debugging Information
celery -A proj report
in the issue. (if you are not able to do this, then at least specify the Celery version affected).master
branch of Celery.pip freeze
in the issue.Optional Debugging Information
Related Issues and Possible Duplicates
Related Issues
Environment & Settings
Celery version:
celery report
Output: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