当我尝试运行工作者时:
celery -A celery_conf --loglevel=debug worker -Q celery -c 1
它似乎开始了,但随后它"取消"了
[2018-08-07 16:25:16,132: INFO/MainProcess] Connected to redis://server:6379/1
[2018-08-07 16:25:23,984: DEBUG/MainProcess] Canceling task consumer...
[2018-08-07 16:25:24,993: DEBUG/MainProcess] Canceling task consumer...
[2018-08-07 16:25:24,993: DEBUG/MainProcess] Closing consumer channel...
[2018-08-07 16:25:24,993: WARNING/MainProcess] Restoring 1 unacknowledged message(s)
[2018-08-07 16:25:24,996: DEBUG/MainProcess] removing tasks from inqueue until task handler finished
知道如何开始调试吗?我已经有了调试的日志级别。
- 芹菜版本:4.2.1(也在master上测试(
- Python版本:3.6.6
- 使用Redis Broker
将您的redis-py降级为redis>=2.10.0,<3.0.0
,或者将您的芹菜版本升级为4.3.0(我没有尝试,我关闭了(
https://github.com/celery/celery/issues/4495#issuecomment-440438055