-
Notifications
You must be signed in to change notification settings - Fork 43
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
Cleanup context is not always run #547
Comments
With your example, I get:
If you want to look at the code and try debugging, cleanup should be run here: |
Thanks for the quick reply! I will try debugging a bit further and get back to you. |
Just some quick initial results:
Perhaps you could publish a new release, so that the issue is fixed at least on Linux? |
Did you checkout the release tag, just to verify it is not some difference between a pip-installed version and a local one? The only change that I can even remotely imagine affecting this is the switch to |
Yes, it was a checkout of the tag Unfortunately I don't know enough about |
Actually, running the bisect wasn't too difficult, and I can confirm that 22929a4 seems to have fixed the issue on Linux. Is there any chance of a new release? |
I'll look at it next week. |
I have discovered two cases in which the second half of a Cleanup Context after the
yield
is not run. The first is in this issue, and the second is in #548.The documentation says:
I have this simple code, which just has one
on_startup
, oneon_shutdown
, and onecleanup_ctx
handler.The following output is the same on both Windows 10 and Linux - I run the server using
adev runserver
, wait a little bit, and then end the server with Ctrl-C.This shows that the second half of the cleanup context is not run, as I expected it should be.
The text was updated successfully, but these errors were encountered: