Repository navigation
Conversation
JuanLeee
reviewed
Nov 16, 2026
| logger = Logger(__name__) | ||
|
|
||
|
|
||
| class AsyncConnectionLifetimePlugin(AsyncPlugin): |
Contributor
There was a problem hiding this comment.
Should we add more unit tests to cover basic functionality of this plugin?
JuanLeee
reviewed
Nov 17, 2026
|
|
||
| @staticmethod | ||
| async def _close(connection: Any) -> None: | ||
| # aiomysql's close() is a coroutine, psycopg's async close() is too, |
Contributor
There was a problem hiding this comment.
Apparently its ensure_closed not close for a connection
JuanLeee
reviewed
Nov 17, 2026
| # connection the pipeline opened and then discarded from being held | ||
| # alive by this map; a connection that cannot be weak-referenced is | ||
| # simply not pre-stamped and gets its timestamp on first use instead. | ||
| self._connection_creation_times: WeakKeyDictionary = WeakKeyDictionary() |
Contributor
There was a problem hiding this comment.
Don't we need to catch all the get and setter to catch when it cannot create a weak reference? Apparently not important since no supported driver hits this case.
karenc-bq
force-pushed
the
feat/connectionLifeTime
branch
from
November 18, 2026 11:57
b65dec2 to
af5282c
Compare
karenc-bq
force-pushed
the
feat/connectionLifeTime
branch
from
November 21, 2026 00:17
af5282c to
24768d1
Compare
JuanLeee
approved these changes
Nov 23, 2026
karenc-bq
force-pushed
the
feat/connectionLifeTime
branch
from
December 1, 2026 23:48
844aedc to
b4ec4a1
Compare
This branch has not been deployed
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 free
to 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.
Description
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.