当我在终端上发出此命令时 - 芹菜工人
得到此错误 - .py:161:CDeprecationWarning: 从版本3.2开始,Celery默认拒绝接受泡菜。
pickle序列化程序是一个安全问题,因为它可能会给攻击者 执行任何命令的能力。确保安全非常重要 你的经纪人在使用泡菜时未经授权访问,所以我们认为 启用泡菜应该需要有意识的行动,而不是 默认选择。
如果你依赖pickle,那么你应该设置一个设置来禁用它 警告,并确保一切都会继续工作 当你升级到Celery 3.2 ::
CELERY_ACCEPT_CONTENT = ['pickle', 'json', 'msgpack', 'yaml']
您只能启用实际使用的序列化程序。
warnings.warn(CDeprecationWarning(W_PICKLE_DEPRECATED))
-------------- celery@hiteshdhanwani-Inspiron-N5010 v3.1.17 (Cipater)
---- **** -----
--- * *** * -- Linux-3.16.0-28-generic-x86_64-with-Ubuntu-14.10-utopic
-- * - **** ---
- ** ---------- [config]
- ** ---------- .> app: default:0x7fd33e57a190 (.default.Loader)
- ** ---------- .> transport: amqp://guest:**@localhost:5672//
- ** ---------- .> results: disabled
- *** --- * --- .> concurrency: 4 (prefork)
-- ******* ----
--- ***** ----- [queues]
-------------- .> celery exchange=celery(direct) key=celery
[2015-03-14 11:05:40,177: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
Trying again in 2.00 seconds...
[2015-03-14 11:05:42,191: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
Trying again in 4.00 seconds...
[2015-03-14 11:05:46,210: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
Trying again in 6.00 seconds...