Uh oh!
There was an error while loading. Please reload this page.
Add per-statement timeout for asyncpg - #13503
Open
hansu650 wants to merge 1 commit into
Open
Conversation
sqla-tester
commented
Aug 13, 2026
Collaborator
Thanks! Issue #7604 is now marked code review in progress and no longer open for pull requests, so this pull request holds the review for it and another one won't land on top of your work. If this pull request is abandoned, a maintainer can put open for pull requests back on #7604 to reopen it to others. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #7604
Description
Adds the
asyncpg_timeoutexecution option requested in #7604 and passes it through to asyncpg for regular statement execution, executemany calls, and server-side cursor creation and fetches.The change includes unit coverage for each adapter path, a PostgreSQL/asyncpg
pg_sleep()integration test that verifies timeout and connection recovery, dialect documentation, and a 2.0 changelog entry.Local verification:
pytest -q test/dialect/postgresql/test_dialect.py— 112 passed, 8 skippedgit diff --check