From b01a448a4c85753600cd331bd8af618de4b0ee67 Mon Sep 17 00:00:00 2001 From: Matus Valo Date: Sat, 24 Oct 2020 22:49:40 +0200 Subject: [PATCH] Added kombu.pools.get_limit() to pools userguide --- docs/userguide/pools.rst | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/userguide/pools.rst b/docs/userguide/pools.rst index 0373c6ab..cf799445 100644 --- a/docs/userguide/pools.rst +++ b/docs/userguide/pools.rst @@ -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 -------------------