Skip to content

Add cancellation token support in precompiled query context generation#37270

Merged
roji merged 2 commits intodotnet:mainfrom
SerhiiKozachenko:patch-1
Feb 12, 2026
Merged

Add cancellation token support in precompiled query context generation#37270
roji merged 2 commits intodotnet:mainfrom
SerhiiKozachenko:patch-1

Conversation

@SerhiiKozachenko
Copy link
Contributor

  • I've read the guidelines for contributing and seen the walkthrough
  • I've posted a comment on an issue with a detailed description of how I am planning to contribute and got approval from a member of the team
  • The code builds and tests pass locally (also verified by our automated build checks)
  • Commit messages follow this format:
        Summary of the changes
        - Detail 1
        - Detail 2

        Fixes #bugnumber
  • Tests for the changes have been added (for bug fixes / features)
  • Code follows the same patterns and style as existing code in this repo

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM.

@roji roji enabled auto-merge (squash) February 12, 2026 14:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds cancellation token propagation to the generated interceptor code for precompiled queries by assigning the incoming CancellationToken argument onto the runtime QueryContext prior to execution.

Changes:

  • Detect CancellationToken parameters during captured-variable processing in precompiled query interceptor generation.
  • Emit code to set precompiledQueryContext.QueryContext.CancellationToken from the operator argument.

@roji roji disabled auto-merge February 12, 2026 16:59
@roji roji merged commit 0be0134 into dotnet:main Feb 12, 2026
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants