Skip to content

Commit 168d38f

Browse files
Adding PropagatedNexusSerializationContext to UpdateWorkflow apis (#883)
<!-- Describe what has changed in this PR --> **What changed?** Adding NexusSerializationContext to UpdateWorkflow Responses <!-- Tell your future self why have you made these changes --> **Why?** This is for sdk to use NexusSerializationContext when running a WorkflowUpdate backed nexus operation. <!-- Are there any breaking changes on binary or code level? --> **Breaking changes** <!-- If this breaks the Server, please provide the Server PR to merge right after this PR was merged. --> **Server PR**
1 parent c66cdb7 commit 168d38f

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎openapi/openapiv2.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20985,6 +20985,10 @@
2098520985
"link": {
2098620986
"$ref": "#/definitions/v1Link",
2098720987
"description": "Link to the update event. May be null if the update has not yet been accepted."
20988+
},
20989+
"propagatedNexusSerializationContext": {
20990+
"$ref": "#/definitions/v1PropagatedSerializationContext",
20991+
"description": "Serialization context propagated from the Nexus caller that started this update."
2098820992
}
2098920993
}
2099020994
},

‎openapi/openapiv3.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19163,6 +19163,10 @@ components:
1916319163
allOf:
1916419164
- $ref: '#/components/schemas/Link'
1916519165
description: Link to the update event. May be null if the update has not yet been accepted.
19166+
propagatedNexusSerializationContext:
19167+
allOf:
19168+
- $ref: '#/components/schemas/PropagatedSerializationContext'
19169+
description: Serialization context propagated from the Nexus caller that started this update.
1916619170
UpsertWorkflowSearchAttributesEventAttributes:
1916719171
type: object
1916819172
properties:

‎temporal/api/workflowservice/v1/request_response.proto‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,6 +1883,9 @@ message UpdateWorkflowExecutionResponse {
18831883

18841884
// Link to the update event. May be null if the update has not yet been accepted.
18851885
temporal.api.common.v1.Link link = 4;
1886+
1887+
// Serialization context propagated from the Nexus caller that started this update.
1888+
temporal.api.nexus.v1.PropagatedSerializationContext propagated_nexus_serialization_context = 5;
18861889
}
18871890

18881891
message StartBatchOperationRequest {
@@ -2025,6 +2028,9 @@ message PollWorkflowExecutionUpdateResponse {
20252028
temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage stage = 2;
20262029
// Sufficient information to address this Update.
20272030
temporal.api.update.v1.UpdateRef update_ref = 3;
2031+
2032+
// Serialization context propagated from the Nexus caller that started this update.
2033+
temporal.api.nexus.v1.PropagatedSerializationContext propagated_nexus_serialization_context = 4;
20282034
}
20292035

20302036
message PollNexusTaskQueueRequest {

0 commit comments

Comments
 (0)