dotnet / orleans

Cloud Native application framework for .NET
https://docs.microsoft.com/dotnet/orleans
MIT License
10.06k stars 2.03k forks source link

CancellationToken should flow from Silo.StopAsync to Grain.OnDeactivateAsync #7836

Open bill-poole opened 2 years ago

bill-poole commented 2 years ago

The CancellationToken passed to the Silo.StopAsync(CancellationToken) method should flow to the CancellationToken passed to the Grain.OnDeactivateAsync(DeactivationReason, CancellationToken) method such that cancelling the CancellationToken passed to the StopAsync method cancels the CancellationToken passed to the OnDeactivateAsync method.

ghost commented 2 years ago

We're moving this issue to the 4.0-Planning milestone for future evaluation / consideration. Because it's not immediately obvious that this is a bug in our framework, we would like to keep this around to collect more feedback, which can later help us determine the impact of it. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.

ReubenBond commented 1 year ago

We should do this. Thanks for reporting it, @bill-poole.

Implementation note:

ArminShoeibi commented 4 months ago

Do you need a hand @ReubenBond? if it is okay I can work on this issue.

ReubenBond commented 4 months ago

@ArminShoeibi thank you for the offer. Yes, help would be appreciated. Please message on Discord if you'd like to talk about it: https://aka.ms/orleans/discord