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

Messages protocol implementation #3843

Merged
merged 3 commits into from
Jan 25, 2023

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Jan 25, 2023

What changed?
Messages protocol implementation.
Corresponding API changes: temporalio/api#253.

Why?
The protocol is used by upcoming synchronous workflow update feature: #3822.

How did you test it?
Integration tests in #3822.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner January 25, 2023 19:19
Comment on lines +545 to +550
newWorkflowTaskType := enumsspb.WORKFLOW_TASK_TYPE_UNSPECIFIED
if ms.IsWorkflowExecutionRunning() && (hasBufferedEvents || request.GetForceCreateNewWorkflowTask() || activityNotStartedCancelled) {
newWorkflowTaskType = enumsspb.WORKFLOW_TASK_TYPE_NORMAL
}
createNewWorkflowTask := newWorkflowTaskType != enumsspb.WORKFLOW_TASK_TYPE_UNSPECIFIED

Copy link
Member Author

@alexshtin alexshtin Jan 25, 2023

Choose a reason for hiding this comment

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

This block looks little weird but there are more cases to come in #3822.

Comment on lines +907 to +908

return nil
Copy link
Member Author

Choose a reason for hiding this comment

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

This will have real code in #3822.

Comment on lines +264 to +265

return nil
Copy link
Member Author

Choose a reason for hiding this comment

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

This will have real code in #3822.

@alexshtin alexshtin merged commit 430d3a9 into temporalio:master Jan 25, 2023
@alexshtin alexshtin deleted the feature/message-protocol branch January 25, 2023 22:18
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