celery之 启动worker报错 NoneType has not attribute "on_soft_timeout"

环境  : linux + django+ celery +redis 

原启动命令 :  celery worker -A celery_tasks -l info 

报错 NoneType has not  attribute "on_soft_timeout"

再windows下能正常启动

启动命令加上参数  : celery  worker -A celery_tasks -l info -p eventlet     

启动成功   

原因分析 : celery 默认-p  prefork(多进程)  出错    

猜你喜欢

转载自www.cnblogs.com/jinri-wuhua/p/12801254.html