-
Notifications
You must be signed in to change notification settings - Fork 81
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
Updates for update reapply #677
Conversation
0f7b349
to
b7f0cd6
Compare
if event.event_type() == EventType::Unspecified | ||
|| event.event_type() == EventType::WorkflowExecutionUpdateRequested | ||
|| event.attributes.is_none() | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two manual changes to sdk-core
in this PR. This is one of them. All other changes were made by updating the protos subtree.
@@ -1981,6 +1981,7 @@ pub mod temporal { | |||
Attributes::WorkflowExecutionUpdateRejectedEventAttributes(_) => {EventType::WorkflowExecutionUpdateRejected} | |||
Attributes::WorkflowExecutionUpdateAcceptedEventAttributes(_) => {EventType::WorkflowExecutionUpdateAccepted} | |||
Attributes::WorkflowExecutionUpdateCompletedEventAttributes(_) => {EventType::WorkflowExecutionUpdateCompleted} | |||
Attributes::WorkflowExecutionUpdateRequestedEventAttributes(_) => {EventType::WorkflowExecutionUpdateRequested} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the second of the two manual changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear, this event is going to be marked worker_may_ignore
correct?
rsync -auv ../api/temporal/ sdk-core-protos/protos/api_upstream/temporal/
b7f0cd6
to
b539787
Compare
Yes that's right. https://github.com/temporalio/temporal/blob/1645bea925812026397f0a5f4594e2978154b457/service/history/historybuilder/event_factory.go#L412 |
Update sdk-core to work with the new
EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REQUESTED
event added in temporalio/api#351How this was tested
I have built
sdk-python
against this branch and have an in-progress server branch that demonstrates correct processing of the new update event bysdk-python
: temporalio/temporal#5361