Skip to content
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

Enable CancellationToken for non-remoting actor implementations #1202

Merged
merged 4 commits into from
Jan 6, 2024

Conversation

philliphoff
Copy link
Contributor

Description

Enable use of CancellationToken in actor interfaces/implementations when clients use the non-remoting proxy. This, when combined with #1158, would enable both clients and implementations to use the same interface definition.

Also ensures that the CancellationToken from the HTTP request is pushed down into the handling and actor logic.

⚠️ When using this capability, clients cannot use the remoting-based proxy for method invocation.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1201

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
@philliphoff philliphoff requested review from a team as code owners December 5, 2023 05:34
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (10ef818) 66.53% compared to head (c12de4e) 66.58%.

Files Patch % Lines
...AspNetCore/ActorsEndpointRouteBuilderExtensions.cs 25.00% 3 Missing ⚠️
src/Dapr.Actors/Runtime/ActorManager.cs 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1202      +/-   ##
==========================================
+ Coverage   66.53%   66.58%   +0.05%     
==========================================
  Files         171      171              
  Lines        5752     5752              
  Branches      626      628       +2     
==========================================
+ Hits         3827     3830       +3     
+ Misses       1776     1772       -4     
- Partials      149      150       +1     
Flag Coverage Δ
net6 66.57% <50.00%> (+0.05%) ⬆️
net7 66.57% <50.00%> (+0.05%) ⬆️
net8 66.57% <50.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yaron2 yaron2 closed this Jan 6, 2024
@yaron2 yaron2 reopened this Jan 6, 2024
@halspang halspang merged commit 8d06a1f into dapr:master Jan 6, 2024
18 of 21 checks passed
@philliphoff philliphoff deleted the philliphoff-actor-cancellation branch January 8, 2024 17:09
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.

Proposal: Support cancellation tokens for non-remoted actor interfaces
3 participants