Added kombu.pools.get_limit() to pools userguide

This commit is contained in:
Matus Valo 2020-10-24 22:49:40 +02:00
parent a4c7809061
commit b01a448a4c
1 changed files with 14 additions and 1 deletions

View File

@ -119,7 +119,7 @@ to the ``news`` exchange:
.. _default-pool-limits:
Setting pool limits
Pool limits
-------------------
By default every connection instance has a limit of 10 connections.
@ -133,6 +133,19 @@ starts:
>>> from kombu import pools
>>> pools.set_limit()
You can also get current limit using :func:`kombu.pools.get_limit`:
.. code-block:: pycon
>>> from kombu import pools
>>> pools.get_limit()
10
>>> pools.set_limit(100)
100
>>> kombu.pools.get_limit()
100
Resetting all pools
-------------------