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

Add get_current_history_length() to workflow info #73

Merged
merged 2 commits into from
Jul 13, 2022

Conversation

cretz
Copy link
Member

@cretz cretz commented Jul 13, 2022

What was changed

Add get_current_history_length() on the workflow info instance

Why?

Users need length for some continue-as-new checks. Like Go at temporalio/sdk-go#851, we have chosen to put this as a getter on the info. We chose to use an explicit method instead of a property getter so it is clear to users this is not a property on the frozen workflow info.

@cretz cretz merged commit d91593d into temporalio:main Jul 13, 2022
@cretz cretz deleted the history_length branch July 13, 2022 18:48
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.

3 participants