]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Re-raise ``CancelledError`` in asyncpg
authorFederico Caselli <cfederico87@gmail.com>
Thu, 10 Jul 2025 22:21:54 +0000 (00:21 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 10 Jul 2025 22:24:06 +0000 (00:24 +0200)
commit7b9365cf9098ec17011a898d93ada7bd6d011e88
tree2cb2349a199b3dcd8adf1d51b02feaae0b7f960f
parentccc4d54b5e3b476852303e15c716c7221d4b1936
Re-raise ``CancelledError`` in asyncpg

Re-raise catched ``CancelledError`` in the terminate method of the
asyncpg dialect to avoid possible hangs of the code execution.

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