Skip to content

Conversation

alexshtin
Copy link
Contributor

@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
Contributor 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
Contributor 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
Contributor 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 force-pushed the feature/message-protocol branch from 1011173 to bc4ec00 Compare January 25, 2023 20:42
@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