Skip to content

Commit 13e3630

Browse files
committed
change from bool to enum in InheritedAutoUpgradeInfo
1 parent 7008fb6 commit 13e3630

3 files changed

Lines changed: 17 additions & 8 deletions

File tree

openapi/openapiv2.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13908,9 +13908,9 @@
1390813908
"format": "int64",
1390913909
"description": "The revision number of the source deployment version of the parent/previous workflow."
1391013910
},
13911-
"useRampingVersion": {
13912-
"type": "boolean",
13913-
"description": "Use the ramping version of the workflow's task queue regardless of Target Version = f(workflow_id, ramp_percentage)."
13911+
"initialVersioningBehavior": {
13912+
"$ref": "#/definitions/v1ContinueAsNewVersioningBehavior",
13913+
"description": "The initial continue-as-new versioning behavior.\nNot passed to children or to future continue-as-new."
1391413914
}
1391513915
},
1391613916
"description": "Used as part of WorkflowExecutionStartedEventAttributes to pass down the AutoUpgrade behavior and source deployment version\nto a workflow execution whose parent/previous workflow has an AutoUpgrade behavior.\nAlso used for Upgrade-on-CaN behaviors AutoUpgrade and UseRampingVersion."

openapi/openapiv3.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10868,9 +10868,16 @@ components:
1086810868
sourceDeploymentRevisionNumber:
1086910869
type: string
1087010870
description: The revision number of the source deployment version of the parent/previous workflow.
10871-
useRampingVersion:
10872-
type: boolean
10873-
description: Use the ramping version of the workflow's task queue regardless of Target Version = f(workflow_id, ramp_percentage).
10871+
initialVersioningBehavior:
10872+
enum:
10873+
- CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED
10874+
- CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE
10875+
- CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_USE_RAMPING_VERSION
10876+
type: string
10877+
description: |-
10878+
The initial continue-as-new versioning behavior.
10879+
Not passed to children or to future continue-as-new.
10880+
format: enum
1087410881
description: |-
1087510882
Used as part of WorkflowExecutionStartedEventAttributes to pass down the AutoUpgrade behavior and source deployment version
1087610883
to a workflow execution whose parent/previous workflow has an AutoUpgrade behavior.

temporal/api/deployment/v1/message.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ option csharp_namespace = "Temporalio.Api.Deployment.V1";
1111

1212
import "google/protobuf/timestamp.proto";
1313

14+
import "temporal/api/enums/v1/workflow.proto";
1415
import "temporal/api/enums/v1/deployment.proto";
1516
import "temporal/api/enums/v1/task_queue.proto";
1617
import "temporal/api/common/v1/message.proto";
@@ -322,6 +323,7 @@ message InheritedAutoUpgradeInfo {
322323
temporal.api.deployment.v1.WorkerDeploymentVersion source_deployment_version = 1;
323324
// The revision number of the source deployment version of the parent/previous workflow.
324325
int64 source_deployment_revision_number = 2;
325-
// Use the ramping version of the workflow's task queue regardless of Target Version = f(workflow_id, ramp_percentage).
326-
bool use_ramping_version = 3;
326+
// The initial continue-as-new versioning behavior.
327+
// Not passed to children or to future continue-as-new.
328+
temporal.api.enums.v1.ContinueAsNewVersioningBehavior initial_versioning_behavior = 3;
327329
}

0 commit comments

Comments
 (0)