Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6059,6 +6059,10 @@
"$ref": "#/definitions/apicommonv1Link"
},
"description": "Links to be associated with the WorkflowExecutionStarted and WorkflowExecutionSignaled events."
},
"versioningOverride": {
"$ref": "#/definitions/v1VersioningOverride",
"description": "If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.\nTo unset the override after the workflow is running, use UpdateWorkflowExecutionOptions."
}
}
},
Expand Down Expand Up @@ -6244,6 +6248,10 @@
"$ref": "#/definitions/apicommonv1Link"
},
"description": "Links to be associated with the workflow."
},
"versioningOverride": {
"$ref": "#/definitions/v1VersioningOverride",
"description": "If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.\nTo unset the override after the workflow is running, use UpdateWorkflowExecutionOptions."
}
}
},
Expand Down Expand Up @@ -9393,6 +9401,10 @@
"userMetadata": {
"$ref": "#/definitions/v1UserMetadata",
"description": "Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionConfig\nfor use by user interfaces to display the fixed as-of-start summary and details of the\nworkflow."
},
"versioningOverride": {
"$ref": "#/definitions/v1VersioningOverride",
"description": "If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.\nTo unset the override after the workflow is running, use UpdateWorkflowExecutionOptions."
}
},
"description": "NewWorkflowExecutionInfo is a shared message that encapsulates all the\nrequired arguments to starting a workflow in different contexts."
Expand Down Expand Up @@ -11616,6 +11628,10 @@
"$ref": "#/definitions/apicommonv1Link"
},
"description": "Links to be associated with the workflow."
},
"versioningOverride": {
"$ref": "#/definitions/v1VersioningOverride",
"description": "If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.\nTo unset the override after the workflow is running, use UpdateWorkflowExecutionOptions."
}
}
},
Expand Down Expand Up @@ -12646,15 +12662,15 @@
"properties": {
"versioningOverride": {
"$ref": "#/definitions/v1VersioningOverride",
"description": "If set, takes precedence over the sdk-sent Versioning Behavior for the specific Workflow\nExecution it is set on."
"description": "If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion."
}
}
},
"v1WorkflowExecutionOptionsUpdatedEventAttributes": {
"type": "object",
"properties": {
"versioningOverride": {
"$ref": "#/definitions/v1VersioningBehaviorOverride",
"$ref": "#/definitions/v1VersioningOverride",
"description": "Versioning override in the mutable state after event has been applied."
}
}
Expand Down Expand Up @@ -12815,6 +12831,10 @@
"inheritedBuildId": {
"type": "string",
"title": "When present, this execution is assigned to the build ID of its parent or previous execution.\nDeprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]"
},
"versioningOverride": {
"$ref": "#/definitions/v1VersioningOverride",
"description": "Versioning override applied to this workflow when it was started."
}
},
"title": "Always the first event in workflow history"
Expand Down
28 changes: 24 additions & 4 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6976,6 +6976,12 @@ components:
Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionConfig
for use by user interfaces to display the fixed as-of-start summary and details of the
workflow.
versioningOverride:
allOf:
- $ref: '#/components/schemas/VersioningOverride'
description: |-
If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
description: |-
NewWorkflowExecutionInfo is a shared message that encapsulates all the
required arguments to starting a workflow in different contexts.
Expand Down Expand Up @@ -8662,6 +8668,12 @@ components:
items:
$ref: '#/components/schemas/Link'
description: Links to be associated with the WorkflowExecutionStarted and WorkflowExecutionSignaled events.
versioningOverride:
allOf:
- $ref: '#/components/schemas/VersioningOverride'
description: |-
If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
SignalWithStartWorkflowExecutionResponse:
type: object
properties:
Expand Down Expand Up @@ -8978,6 +8990,12 @@ components:
items:
$ref: '#/components/schemas/Link'
description: Links to be associated with the workflow.
versioningOverride:
allOf:
- $ref: '#/components/schemas/VersioningOverride'
description: |-
If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
StartWorkflowExecutionResponse:
type: object
properties:
Expand Down Expand Up @@ -10140,15 +10158,13 @@ components:
versioningOverride:
allOf:
- $ref: '#/components/schemas/VersioningOverride'
description: |-
If set, takes precedence over the sdk-sent Versioning Behavior for the specific Workflow
Execution it is set on.
description: If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
WorkflowExecutionOptionsUpdatedEventAttributes:
type: object
properties:
versioningOverride:
allOf:
- $ref: '#/components/schemas/VersioningBehaviorOverride'
- $ref: '#/components/schemas/VersioningOverride'
description: Versioning override in the mutable state after event has been applied.
WorkflowExecutionSignaledEventAttributes:
type: object
Expand Down Expand Up @@ -10319,6 +10335,10 @@ components:
description: |-
When present, this execution is assigned to the build ID of its parent or previous execution.
Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
versioningOverride:
allOf:
- $ref: '#/components/schemas/VersioningOverride'
description: Versioning override applied to this workflow when it was started.
description: Always the first event in workflow history
WorkflowExecutionTerminatedEventAttributes:
type: object
Expand Down
4 changes: 3 additions & 1 deletion temporal/api/history/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ message WorkflowExecutionStartedEventAttributes {
// When present, this execution is assigned to the build ID of its parent or previous execution.
// Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
string inherited_build_id = 32;
// Versioning override applied to this workflow when it was started.
temporal.api.workflow.v1.VersioningOverride versioning_override = 33;
}

message WorkflowExecutionCompletedEventAttributes {
Expand Down Expand Up @@ -759,7 +761,7 @@ message ChildWorkflowExecutionTerminatedEventAttributes {

message WorkflowExecutionOptionsUpdatedEventAttributes {
// Versioning override in the mutable state after event has been applied.
temporal.api.common.v1.VersioningBehaviorOverride versioning_override = 1;
temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
}

// Not used anywhere. Use case is replaced by WorkflowExecutionOptionsUpdatedEventAttributes
Expand Down
6 changes: 4 additions & 2 deletions temporal/api/workflow/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ message NewWorkflowExecutionInfo {
// for use by user interfaces to display the fixed as-of-start summary and details of the
// workflow.
temporal.api.sdk.v1.UserMetadata user_metadata = 14;
// If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
// To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
VersioningOverride versioning_override = 15;
}

// CallbackInfo contains the state of an attached workflow callback.
Expand Down Expand Up @@ -362,8 +365,7 @@ message NexusOperationCancellationInfo {
}

message WorkflowExecutionOptions {
// If set, takes precedence over the sdk-sent Versioning Behavior for the specific Workflow
// Execution it is set on.
// If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
VersioningOverride versioning_override = 1;
}

Expand Down
7 changes: 6 additions & 1 deletion temporal/api/workflowservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ message StartWorkflowExecutionRequest {
temporal.api.sdk.v1.UserMetadata user_metadata = 23;
// Links to be associated with the workflow.
repeated temporal.api.common.v1.Link links = 24;
// If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
// To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
temporal.api.workflow.v1.VersioningOverride versioning_override = 25;
}

message StartWorkflowExecutionResponse {
Expand Down Expand Up @@ -712,9 +715,11 @@ message SignalWithStartWorkflowExecutionRequest {
// for use by user interfaces to display the fixed as-of-start summary and details of the
// workflow.
temporal.api.sdk.v1.UserMetadata user_metadata = 23;

// Links to be associated with the WorkflowExecutionStarted and WorkflowExecutionSignaled events.
repeated temporal.api.common.v1.Link links = 24;
// If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
// To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
temporal.api.workflow.v1.VersioningOverride versioning_override = 25;
}

message SignalWithStartWorkflowExecutionResponse {
Expand Down
Loading