celery不能用root用户启动问题 C_FORCE_ROOT environment
如果使用root用户启动celery会遇到下面的问题
Running a workerwithsuperuser privileges when theworker accepts messages serializedwithpickle is a very bad idea!If you really want tocontinuethen you have to set the C_FORCE_ROOTenvironment variable (but please think aboutthisbefore youdo).
解决办法:
fromceleryimportCelery, platformsplatforms.C_FORCE_ROOT =True#加上这一行
参考:https://www.jianshu.com/p/9e422d9f1ce2