-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Event loop is closed" exception raised during shutdown #241
Comments
ErikKalkoken
changed the title
Event loop is closed exception raised during shutdown
"Event loop is closed" exception raised during shutdown
May 26, 2023
@amyreese Currently experiencing this on py312 / aiosqlite v0.20.0 too. Reviewing the code, the event flows is this:
Therefore, any transaction queue item results must forwarded to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I am current building a persistent queue library based on aiosqlite and think I might have found a bug.
When a task is still trying to perform SQL queries during shutdown it will raise the following exception:
In order to allow for a graceful shutdown of a service I think it should log the SQL statement that failed, instead of producing this exception.
Here is a minimal code example to reproduce this behavior:
Details
The text was updated successfully, but these errors were encountered: