-
Notifications
You must be signed in to change notification settings - Fork 88
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
"error on dispatch" CancelledError when using protocol.close() #133
Comments
ATM we don't really guard against being cancelled, but maybe we should. I haven't really hit that particular problem. And I'm not quite sure what it would look like on aioamqp's side. I'm not sure I want to force a particular semantic for cancellation on anyone (ie, "shut everything down right now" or "try to close the connection nicely"). What I do in a production code is to run the amqp bits in a separate task, and coordinate cancellation through I'll leave this open so that we can think about this issue a bit more once we tackle the redesign project from #118 and other PRs. |
Thanks for the quick answer. Any hope to get an example or syncing coroutines with events? Its way beyong m'y poor asyncio skills ;-) Regards, Adam |
I hit the same error and ended up just subclassing the Protocol to dodge the problem. The major issue for us is that we have sentry in place which emits errors any time the code posts a log message to an error log. Here's the dodge I used:
|
@EliRibble Thanks |
You're right, my mistake. The exception handler is the same but the root cause is different. I'll start a separate issue with details on it |
Reopen it please, 133 is closed but the problem is still here.
While trying to |
Hello,
I might be doing something wrong but I think there might be a problem with dispatch_frame.
Here is what I receive when I my wrapping coroutine gets cancelled it tries to close/wait the AMQ connection by doing:
I receive the following error:
Thanks in advance for your help!
Best regards, Adam.
The text was updated successfully, but these errors were encountered: