Skip to content

Access current update info inside update handler #268

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

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

cretz
Copy link
Member

@cretz cretz commented Jun 6, 2024

What was changed

  • Added Temporalio.Workflows.WorkflowUpdateInfo, similar to Temporalio.Workflows.WorkflowInfo, with workflow-accessible information for an update (currently Id and Name)
  • Added Temporalio.Workflows.Workflow.CurrentUpdateInfo, similar to Temporalio.Workflows.Workflow.Info, with the current in-context update info
    • This uses AsyncLocal so it works inside the handler and tasks it starts but nowhere else

Checklist

  1. Closes Expose UpdateID in an update handler #265

@cretz cretz requested a review from a team June 6, 2024 20:13
@cretz cretz merged commit c299cec into temporalio:main Jun 6, 2024
7 checks passed
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.

Expose UpdateID in an update handler
2 participants