dotnet / dotnet/orleans

Provide GrainCancellationToken in RequestContext

Open
#8,841 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Needs: triage :mag:
Dominant language
C#
Stars
10.9k
Forks
2.1k
Avg merge
13h 56m
Merged PRs (30d)
351

Description

The methods in grain are usually asynchronous and support cancellation. I have added the GrainCancellationToken parameter to many methods, which is quite cumbersome.

Can we provide a GrainCancellationToken in RequestContext to avoid defining the GrainCancellationToken parameter in many methods of grain

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by reading RequestContext and the existing GrainCancellationToken usage in grain methods, then determine the intended cancellation behavior and API impact. Done means the token is available through RequestContext without requiring repeated method parameters, with the behavior covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.