Browse Source

Documents BROKER_LOGIN_METHOD

Ask Solem 11 năm trước cách đây
mục cha
commit
bc50e7b5c0
2 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 1 0
      celery/app/defaults.py
  2. 7 0
      docs/configuration.rst

+ 1 - 0
celery/app/defaults.py

@@ -71,6 +71,7 @@ NAMESPACES = {
         'CONNECTION_MAX_RETRIES': Option(100, type='int'),
         'HEARTBEAT': Option(None, type='int'),
         'HEARTBEAT_CHECKRATE': Option(3.0, type='int'),
+        'LOGIN_METHOD': Option(None, type='string'),
         'POOL_LIMIT': Option(10, type='int'),
         'USE_SSL': Option(False, type='bool'),
         'TRANSPORT': Option(type='string'),

+ 7 - 0
docs/configuration.rst

@@ -944,6 +944,13 @@ If this is set to :const:`0` or :const:`None`, we will retry forever.
 
 Default is 100 retries.
 
+.. setting:: BROKER_LOGIN_METHOD
+
+BROKER_LOGIN_METHOD
+~~~~~~~~~~~~~~~~~~~
+
+Set custom amqp login method, default is ``AMQPLAIN``.
+
 .. setting:: BROKER_TRANSPORT_OPTIONS
 
 BROKER_TRANSPORT_OPTIONS