Skip to content

Disable graph reconnecting session, bump v0.13.4 - #199

Merged
evgeny-stakewise merged 1 commit into
masterfrom
graph-non-reconnecting
Jul 27, 2026
Merged

Disable graph reconnecting session, bump v0.13.4#199
evgeny-stakewise merged 1 commit into
masterfrom
graph-non-reconnecting

Conversation

@evgeny-stakewise

Copy link
Copy Markdown
Contributor

Summary

Disable the gql reconnecting=True session in GraphClient, switching to a plain non-reconnecting AsyncClientSession.

reconnecting=True provides no benefit for AIOHTTPTransport (request/response HTTP — there is no persistent connection to reconnect), and its close_async() teardown cancels the background _connection_loop task without awaiting it. That race orphans the underlying aiohttp.ClientSession, producing intermittent "Unclosed client session" warnings. Query-level robustness is already provided by retry_gql_errors in run_query.

With reconnecting=False, close_async() reduces to transport.close() (which drains aiohttp deterministically), so cleanup is deterministic with no orphaned sessions. Same happy-path behavior and same query-level retries.

Also dropped retry_execute=False — it is only consumed by ReconnectingAsyncClientSession and is a no-op on the non-reconnecting path.

Bumped version to v0.13.4.

@evgeny-stakewise
evgeny-stakewise merged commit 01d7c23 into master Jul 27, 2026
3 checks passed
@evgeny-stakewise
evgeny-stakewise deleted the graph-non-reconnecting branch July 27, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants