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

Refactor transient workflow task state machine #3740

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Dec 20, 2022

What changed?
Refactor transient workflow task state machine. Added IsTransientWorkflowTask() method to mutable state and use it everywhere to determinate if workflow task is transient or not.

Also significantly improved comments about transient workflow task state machine logic.

Why?
Consistent behaviour based on attempts count but not on event ids.

How did you test it?
Existing tests.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner December 20, 2022 22:19
Copy link
Member

@yycptt yycptt left a comment

Choose a reason for hiding this comment

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

Thanks for rewriting the comments and make the code more readable! 👍 👍 👍

@alexshtin alexshtin enabled auto-merge (squash) December 21, 2022 08:00
@alexshtin alexshtin merged commit 661880f into temporalio:master Dec 21, 2022
@alexshtin alexshtin deleted the feature/transient-wt branch December 21, 2022 08:03
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