Skip to content

Conversation

@cretz
Copy link
Member

@cretz cretz commented Jun 6, 2025

What was changed

Changed WorkflowExecutionDescription properties of StaticSummary and StaticDetails to now be methods of GetStaticSummaryAsync and GetStaticDetailsAsync. This is a breaking change to experimental API.

Checklist

  1. Closes [Feature Request] Change get static summary/details on workflow in client to be lazy #460

@cretz cretz requested a review from a team as a code owner June 6, 2025 14:53
Copy link
Contributor

@maciejdudko maciejdudko left a comment

Choose a reason for hiding this comment

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

Looks good, LGTM!

RawDescription = rawDescription;
StaticSummary = staticSummary;
StaticDetails = staticDetails;
#pragma warning disable VSTHRD011 // This should not be able to deadlock
Copy link
Contributor

Choose a reason for hiding this comment

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

This is almost certainly safe but I'd still explore changing it to AsyncLazy sometime in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

The concern there is https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.threading.asynclazy-1?view=visualstudiosdk-2019 requires a dependency we don't really want to take. But we could make our own if we had to.

Choose a reason for hiding this comment

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

@cretz cretz merged commit a7ca5ec into temporalio:main Jun 6, 2025
9 checks passed
@cretz cretz deleted the lazy-metadata branch June 6, 2025 16:33
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.

[Feature Request] Change get static summary/details on workflow in client to be lazy

3 participants