Celery CRITICAL/MainProcess] Unrecoverable error: AttributeError(“'float' object has no attribute 'items'”,)

后端 未结 4 1752
一生所求
一生所求 2021-02-19 10:50

I\'ve been running a flask application with a celery worker and redis in three separated docker containers without any issue.

This is how I start it:

cele

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 10:57

    The problem was that the my celery container downloaded a new release of the redis package with pip at build time, eventually with a bug or a serious change that crashes when celery tries to use it when connecting to redis. This new redis library is the 3.0.0 and it was released today.

    To fix the issue you have to specify the previous version in the requirements.txt (which is 2.10.6).

    And actually, specifying package versions in the requirements.txt is a good practice that prevents this type of problems.

提交回复
热议问题