cellery ImportError & AttributeError
一、zz的问题
celery 运行work要进入到 文件所在的文件夹下执行
二、AttributeError: 'Flask' object has no attribute 'user_options'
解决方法:
celery -A application.controllers.routes:celery worker --loglevel=info
example:celery -A hello:celery worker --loglevel=info
三、Received unregistered task of type
[2016-11-08 17:43:42,023: ERROR/MainProcess] Received unregistered task of type u'proj.ce_tasks.add'.
需要将这个task添加到 CELERY_IMPORTS 元组中
source link:http://stackoverflow.com/questions/9769496/celery-received-unregistered-task-of-type-run-example
四、redis MISCONF
consumer: Cannot connect to redis://localhost:6379/2: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error..
见redis 配置持久