浏览代码

Add BROKER_LOGIN_METHOD application configuration directive

BROKER_LOGIN_METHOD is used as the login_method value of the constructor
of the kombu.connection.Connection class. This can be used to sepcify,
for instance, an EXTERNAL login method with RabbitMQ.
Adrien Guinet 11 年之前
父节点
当前提交
647207e7f0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      celery/app/base.py

+ 1 - 0
celery/app/base.py

@@ -308,6 +308,7 @@ class Celery(object):
             connect_timeout=self.either(
             connect_timeout=self.either(
                 'BROKER_CONNECTION_TIMEOUT', connect_timeout),
                 'BROKER_CONNECTION_TIMEOUT', connect_timeout),
             heartbeat=heartbeat,
             heartbeat=heartbeat,
+            login_method=self.either('BROKER_LOGIN_METHOD', None),
             transport_options=dict(conf.BROKER_TRANSPORT_OPTIONS,
             transport_options=dict(conf.BROKER_TRANSPORT_OPTIONS,
                                    **transport_options or {}))
                                    **transport_options or {}))
     broker_connection = connection
     broker_connection = connection