From: Daniele Varrazzo Date: Wed, 15 Mar 2023 02:46:18 +0000 (+0100) Subject: docs(pool): mention async reconnect_failed support in docs and news X-Git-Tag: pool-3.2.0~118^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f831a052cd403c39cddbf7d83af45d081b686ee0;p=thirdparty%2Fpsycopg.git docs(pool): mention async reconnect_failed support in docs and news --- diff --git a/docs/api/pool.rst b/docs/api/pool.rst index 76ccc7456..aae0719a5 100644 --- a/docs/api/pool.rst +++ b/docs/api/pool.rst @@ -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 diff --git a/docs/news_pool.rst b/docs/news_pool.rst index 3335b1084..f595d93f1 100644 --- a/docs/news_pool.rst +++ b/docs/news_pool.rst @@ -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 ---------------