RabbitMQ 4.0搭配Celery时遭遇弃用特性警告及配置报错的处理求助
各位同行好,我目前在使用Celery配合RabbitMQ搭建任务队列服务,启动RabbitMQ时遇到了两条弃用特性的警告信息:
Deprecated features:
transient_nonexcl_queues: Featuretransient_nonexcl_queuesis deprecated.
By default, this feature can still be used for now.
Its use will not be permitted by default in a future minor RabbitMQ version and the feature will be removed from a future major RabbitMQ version; actual versions to be determined.
To continue using this feature when it is not permitted by default, set the following parameter in your configuration:
"deprecated_features.permit.transient_nonexcl_queues = true"
To test RabbitMQ as if the feature was removed, set this in your configuration:
"deprecated_features.permit.transient_nonexcl_queues = false"
同时还有一条关于global_qos的完全相同格式的警告。我试着按照提示把这两个配置项都设置为false,结果直接触发了报错,这说明我的服务确实在使用这些特性,但我自己完全没有主动配置过——说实话我根本不在意队列是临时还是持久化的,也从来没特意设置过全局QoS相关的内容。
想请教下各位:这两个特性是不是Celery默认就会启用的?有没有办法定位到Celery里具体是哪部分逻辑在调用这些特性?另外,除了暂时把配置改回true继续使用之外,有没有更合适的长期解决方案,能让我提前适配RabbitMQ后续版本的要求?
备注:内容来源于stack exchange,提问作者jdm

