]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add asyncio.CancelledError to terminate conditions
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Sep 2024 15:18:35 +0000 (11:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Sep 2024 15:19:10 +0000 (11:19 -0400)
commit4107f63e5f961706c751a9e5fb5a0131cf6d1dd9
treeb8c3721946a3786f6be399df04578f548f5fbdb3
parent42ec1f70138d51dd7e61578453faa0f4d47f6ec3
add asyncio.CancelledError to terminate conditions

Revising the asyncpg ``terminate()`` fix first made in :ticket:`10717`
which improved the resiliency of this call under all circumstances, adding
``asyncio.CancelledError`` to the list of exceptions that are intercepted
as failing for a graceful ``.close()`` which will then proceed to call
``.terminate()``.

Fixes: #11821
Change-Id: Ic5e21cd18cc5517aae372560c52b2b2396c65483
(cherry picked from commit dc7aec467487f729c3a6d1e9e352626593cf5d67)
doc/build/changelog/unreleased_20/11821.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/asyncpg.py