Skip to content

Conversation

@CasperGN
Copy link

@CasperGN CasperGN commented Feb 9, 2026

Handle shutdown event where _response_stream is a generator object and thus does not have direct access to .cancel(). Instead we get access to the gRPC stream cancel through .call.cancel().

It's a bit obscured but, the Call object is of RpcContext which implements it.

I've run both test suites.

…rator. Future TODO: figure out if it's ever a grpc.Future.

Signed-off-by: Casper Nielsen <casper@diagrid.io>
Signed-off-by: Casper Nielsen <casper@diagrid.io>
@CasperGN CasperGN requested a review from a team as a code owner February 9, 2026 10:10
Signed-off-by: Casper Nielsen <casper@diagrid.io>
@CasperGN CasperGN requested a review from acroca February 9, 2026 10:51
…sed and single grpc.Future _response_stream close methods

Signed-off-by: Casper Nielsen <casper@diagrid.io>
Copy link

@sicoyle sicoyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your build is green so we'll go with yours over my pr :) #43
thank you!

@sicoyle sicoyle merged commit a7ff4a1 into dapr:main Feb 9, 2026
7 checks passed
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.

3 participants