]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs(pool): mention async reconnect_failed support in docs and news
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 15 Mar 2023 02:46:18 +0000 (03:46 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 15 Mar 2023 02:51:53 +0000 (03:51 +0100)
docs/api/pool.rst
docs/news_pool.rst

index 76ccc7456d5350e8ce75c4a2909d609bc8e6a02d..aae0719a538ba64a7c87df73169c9f6b234f92dd 100644 (file)
@@ -252,6 +252,14 @@ listed here.
                  the pool.
    :type reset: `async Callable[[AsyncConnection], None]`
 
+   :param reconnect_failed: Callback invoked if an attempt to create a new
+        connection fails for more than `!reconnect_timeout` seconds.
+   :type reconnect_failed: `Callable[[AsyncConnectionPool], None]` or
+        `async Callable[[AsyncConnectionPool], None]`
+
+   .. versionchanged:: 3.2.0
+        The `!reconnect_failed` parameter can be `!async`.
+
    .. automethod:: connection
 
       .. code:: python
index 3335b10843c9370a7b81fee082fcfb882f98139c..f595d93f1058bc8654c13c74b4dd4bd5cf157c20 100644 (file)
@@ -7,6 +7,16 @@
 ``psycopg_pool`` release notes
 ==============================
 
+Future releases
+---------------
+
+psycopg_pool 3.2.0 (unreleased)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Add support for async `!reconnect_failed` callbacks in `AsyncConnectionPool`
+  (:ticket:`#520`).
+
+
 Current release
 ---------------