]> 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:18:35 +0000 (11:18 -0400)
commitdc7aec467487f729c3a6d1e9e352626593cf5d67
tree1253c9f3b40dfcc8c3446b1b45ff9741cd319617
parentf746fd78e303352d426a15c1f76ee835ce399d44
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
doc/build/changelog/unreleased_20/11821.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/asyncpg.py