Skip to content

Commit 2d6a6d8

Browse files
committed
pass override in SourceWorkflowVersioningInfo
1 parent 6258dab commit 2d6a6d8

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

openapi/openapiv2.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7203,6 +7203,10 @@
72037203
"taskQueue": {
72047204
"type": "string",
72057205
"description": "Task queue name of source workflow if different from started workflow."
7206+
},
7207+
"pinnedOverride": {
7208+
"$ref": "#/definitions/v1VersioningOverride",
7209+
"description": "Override of source workflow if that override is pinned.\nPinned overrides are automatically inherited by child workflows,\ncontinue-as-new workflows, workflow retries, and cron workflows."
72067210
}
72077211
}
72087212
},
@@ -15607,7 +15611,7 @@
1560715611
},
1560815612
"versioningOverride": {
1560915613
"$ref": "#/definitions/v1VersioningOverride",
15610-
"description": "Versioning override applied to this workflow when it was started.\nPinned overrides are automatically inherited by child workflows,\ncontinue-as-new workflows, workflow retries, and cron workflows."
15614+
"description": "Versioning override applied to this workflow when it was started."
1561115615
},
1561215616
"parentPinnedWorkerDeploymentVersion": {
1561315617
"type": "string",

openapi/openapiv3.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13133,10 +13133,7 @@ components:
1313313133
versioningOverride:
1313413134
allOf:
1313513135
- $ref: '#/components/schemas/VersioningOverride'
13136-
description: |-
13137-
Versioning override applied to this workflow when it was started.
13138-
Pinned overrides are automatically inherited by child workflows,
13139-
continue-as-new workflows, workflow retries, and cron workflows.
13136+
description: Versioning override applied to this workflow when it was started.
1314013137
parentPinnedWorkerDeploymentVersion:
1314113138
type: string
1314213139
description: |-
@@ -13196,6 +13193,13 @@ components:
1319613193
taskQueue:
1319713194
type: string
1319813195
description: Task queue name of source workflow if different from started workflow.
13196+
pinnedOverride:
13197+
allOf:
13198+
- $ref: '#/components/schemas/VersioningOverride'
13199+
description: |-
13200+
Override of source workflow if that override is pinned.
13201+
Pinned overrides are automatically inherited by child workflows,
13202+
continue-as-new workflows, workflow retries, and cron workflows.
1319913203
WorkflowExecutionTerminatedEventAttributes:
1320013204
type: object
1320113205
properties:

temporal/api/history/v1/message.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ message WorkflowExecutionStartedEventAttributes {
119119
// Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
120120
string inherited_build_id = 32 [deprecated = true];
121121
// Versioning override applied to this workflow when it was started.
122-
// Pinned overrides are automatically inherited by child workflows,
123-
// continue-as-new workflows, workflow retries, and cron workflows.
124122
temporal.api.workflow.v1.VersioningOverride versioning_override = 33;
125123
// When present, it means this is a child workflow of a parent that is Pinned to this Worker
126124
// Deployment Version. In this case, child workflow will start as Pinned to this Version instead
@@ -167,6 +165,10 @@ message WorkflowExecutionStartedEventAttributes {
167165
temporal.api.enums.v1.VersioningBehavior behavior = 2;
168166
// Task queue name of source workflow if different from started workflow.
169167
string task_queue = 3;
168+
// Override of source workflow if that override is pinned.
169+
// Pinned overrides are automatically inherited by child workflows,
170+
// continue-as-new workflows, workflow retries, and cron workflows.
171+
temporal.api.workflow.v1.VersioningOverride pinned_override = 4;
170172
}
171173
}
172174

0 commit comments

Comments
 (0)