Skip to content

Conversation

@febus982
Copy link
Owner

@febus982 febus982 commented Jan 18, 2026

Make the _dispose_sync method public and document it

febus982 and others added 3 commits January 18, 2026 21:59
Use close=False when disposing engines in the atexit handler to avoid
MissingGreenlet errors with async drivers (e.g., aiosqlite) that require
an event loop context to close connections. The OS will clean up
connections when the process exits.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@febus982 febus982 marked this pull request as ready for review January 18, 2026 22:43
@febus982 febus982 merged commit 76d5326 into main Jan 18, 2026
11 checks passed
@febus982 febus982 deleted the fix-atexit-async-disposal branch January 18, 2026 22:44
@febus982 febus982 changed the title Fix atexit handler for async drivers during shutdown Make the _dispose_sync method public and document it Jan 18, 2026
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