服務器:Centos7
Python版本:Python 3.7.0
Celery版本:4.2.1
Python3.5以上,OrderDict不允許在迭代過程中進行修改,導致LRUCache.update失敗,可能引起的此問題。
解決方法,安裝dev版的celery
python3 -m pip install -e git+https://github.com/celery/kombu.git#egg=kombu
參考鏈接:
https://github.com/celery/celery/issues/3200
https://github.com/celery/celery/issues/2897