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

CreateTimer validation and more context for activity implementations #1183

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cgillum
Copy link
Member

@cgillum cgillum commented Jan 26, 2025

Changes

  • Add CreateTimer input validation: the design of the CreateTimer API makes it easy to accidentally pass a CancellationToken as the state parameter, which is never appropriate and is also theoretically dangerous because of how cancellation token deserialization can corrupt memory. This PR adds validation ensuring that the API is not being used incorrectly.

  • Add more context for activities: General enhancement to allow activities to know their name, version, and task ID. This can be useful for debugging and logging purposes. It can also be used for simplifying the implementation of some versioning scenarios.

  • Incremented DurableTask.Core package version to 3.1.0.

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.

2 participants