Skip to content

Commit 73148cc

Browse files
committed
save
1 parent 3cd94cb commit 73148cc

File tree

4 files changed

+47
-64
lines changed

4 files changed

+47
-64
lines changed

temporal/api/deployment/v1/message.proto

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -241,31 +241,28 @@ message VersionMetadata {
241241
}
242242

243243
message RoutingConfig {
244-
// Always present. Specifies which Deployment Version should should receive new workflow
245-
// executions and tasks of existing unversioned or AutoUpgrade workflows.
244+
// Specifies which Deployment Version should should receive new workflow executions and tasks of
245+
// existing unversioned or AutoUpgrade workflows.
246+
// Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
246247
// Note: Current Version is overridden by the Ramping Version for a portion of traffic when a ramp
247-
// is set (see `ramping_version`.)
248-
oneof current {
249-
temporal.api.deployment.v1.WorkerDeploymentVersion current_deployment_version = 7;
250-
// Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
251-
bool current_unversioned = 8;
252-
}
253-
// Deprecated. Use `current`.
248+
// is set and ramp percentage is non-zero (see `ramping_deployment_version`.)
249+
temporal.api.deployment.v1.WorkerDeploymentVersion current_deployment_version = 7;
250+
// Deprecated. Use `current_deployment_version`.
254251
string current_version = 1 [deprecated = true];
255-
// When present, it means the traffic is being shifted from the Current Version to the Ramping Version.
252+
253+
// When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
256254
// Must always be different from Current Version.
255+
// Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
257256
// Note that it is possible to ramp from one Version to another Version, or from unversioned
258257
// workers to a particular Version, or from a particular Version to unversioned workers.
259-
oneof ramping {
260-
temporal.api.deployment.v1.WorkerDeploymentVersion ramping_deployment_version = 9;
261-
// Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
262-
bool ramping_unversioned = 10;
263-
}
258+
temporal.api.deployment.v1.WorkerDeploymentVersion ramping_deployment_version = 9;
264259
// Deprecated. Use `ramping`.
265260
string ramping_version = 2 [deprecated = true];
261+
266262
// Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
267263
// Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
268264
// not yet "promoted" to be the Current Version, likely due to pending validations.
265+
// A 0% value means the Ramping Version is receiving no traffic.
269266
float ramping_version_percentage = 3;
270267
// Last time current version was changed.
271268
google.protobuf.Timestamp current_version_changed_time = 4;

temporal/api/taskqueue/v1/message.proto

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,31 +57,28 @@ message TaskQueueMetadata {
5757

5858
// Experimental. Worker Deployments are experimental and might significantly change in the future.
5959
message TaskQueueVersioningInfo {
60-
// Always present. Specifies which Deployment Version should receive new workflow
61-
// executions and tasks of existing unversioned or AutoUpgrade workflows.
60+
// Specifies which Deployment Version should receive new workflow executions and tasks of
61+
// existing unversioned or AutoUpgrade workflows.
62+
// Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
6263
// Note: Current Version is overridden by the Ramping Version for a portion of traffic when a ramp
6364
// is set (see `ramping_version`.)
64-
oneof current {
65-
temporal.api.deployment.v1.WorkerDeploymentVersion current_deployment_version = 7;
66-
// Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
67-
bool current_unversioned = 8;
68-
}
69-
// Deprecated. Use `current`.
65+
temporal.api.deployment.v1.WorkerDeploymentVersion current_deployment_version = 7;
66+
// Deprecated. Use `current_deployment_version`.
7067
string current_version = 1 [deprecated = true];
71-
// When present, it means the traffic is being shifted from the Current Version to the Ramping Version.
72-
// Must always be different from `current_version`.
68+
69+
// When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
70+
// Must always be different from `current_deployment_version`.
71+
// Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
7372
// Note that it is possible to ramp from one Version to another Version, or from unversioned
7473
// workers to a particular Version, or from a particular Version to unversioned workers.
75-
oneof ramping {
76-
temporal.api.deployment.v1.WorkerDeploymentVersion ramping_deployment_version = 9;
77-
// Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
78-
bool ramping_unversioned = 10;
79-
}
74+
temporal.api.deployment.v1.WorkerDeploymentVersion ramping_deployment_version = 9;
8075
// Deprecated. Use `ramping`.
8176
string ramping_version = 2 [deprecated = true];
77+
8278
// Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
8379
// Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
8480
// not yet "promoted" to be the Current Version, likely due to pending validations.
81+
// A 0% value means the Ramping Version is receiving no traffic.
8582
float ramping_version_percentage = 3;
8683
// Last time versioning information of this Task Queue changed.
8784
google.protobuf.Timestamp update_time = 4;

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,18 +2024,15 @@ message SetCurrentDeploymentResponse {
20242024
// Set/unset the Current Version of a Worker Deployment.
20252025
message SetWorkerDeploymentCurrentVersionRequest {
20262026
string namespace = 1;
2027-
// Deprecated. Use `current`.
2028-
string deployment_name = 2 [deprecated = true];
2029-
// Deprecated. Use `current`.
2027+
string deployment_name = 2;
2028+
// Deprecated. Use `build_id`.
20302029
string version = 3 [deprecated = true];
20312030

2032-
// Required.
2033-
oneof current {
2034-
temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 7;
2035-
// The name of the Deployment where you want to set Current Version to unversioned.
2036-
// Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
2037-
string unversioned_deployment_name = 8;
2038-
};
2031+
// The build id of the version that you want to set as Current.
2032+
// Pass an empty value to set the Current Version to nil.
2033+
// A nil Current Version represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
2034+
string build_id = 7;
2035+
20392036
// Optional. This can be the value of conflict_token from a Describe, or another Worker
20402037
// Deployment API. Passing a non-nil conflict token will cause this request to fail if the
20412038
// Deployment's configuration has been modified between the API call that generated the
@@ -2064,29 +2061,24 @@ message SetWorkerDeploymentCurrentVersionResponse {
20642061
// that write to the Worker Deployment state to ensure that the state
20652062
// did not change between this API call and a future write.
20662063
bytes conflict_token = 1;
2067-
// Deprecated. Use `replaced_version`.
2064+
// Deprecated. Use `previous_deployment_version`.
20682065
string previous_version = 2 [deprecated = true];
20692066
// The version that was current before executing this operation.
2070-
oneof replaced_version {
2071-
temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 3;
2072-
bool unversioned = 4;
2073-
};
2067+
temporal.api.deployment.v1.WorkerDeploymentVersion previous_deployment_version = 3;
20742068
}
20752069

20762070
// Set/unset the Ramping Version of a Worker Deployment and its ramp percentage.
20772071
message SetWorkerDeploymentRampingVersionRequest {
20782072
string namespace = 1;
2079-
// Deprecated. Use `ramping`.
2080-
string deployment_name = 2 [deprecated = true];
2081-
// Deprecated. Use `ramping`.
2073+
string deployment_name = 2;
2074+
// Deprecated. Use `build_id`.
20822075
string version = 3 [deprecated = true];
2083-
// Pass an empty value to unset the Ramping Version. Must be paired with `percentage=0`.
2084-
oneof ramping {
2085-
temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 8;
2086-
// The name of the Deployment where you want to set Ramping Version to unversioned.
2087-
// Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
2088-
string unversioned_deployment_name = 9;
2089-
};
2076+
2077+
// The build id of the version that you want to ramp traffic to.
2078+
// Pass an empty value to set the Ramping Version to nil.
2079+
// A nil Ramping Version represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
2080+
string build_id = 8;
2081+
20902082
// Ramp percentage to set. Valid range: [0,100].
20912083
float percentage = 4;
20922084

@@ -2121,13 +2113,10 @@ message SetWorkerDeploymentRampingVersionResponse {
21212113
// that write to the Worker Deployment state to ensure that the state
21222114
// did not change between this API call and a future write.
21232115
bytes conflict_token = 1;
2124-
// Deprecated. Use `replaced_version`.
2116+
// Deprecated. Use `previous_deployment_version`.
21252117
string previous_version = 2 [deprecated = true];
21262118
// The version that was ramping before executing this operation.
2127-
oneof replaced_version {
2128-
temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 4;
2129-
bool unversioned = 5;
2130-
};
2119+
temporal.api.deployment.v1.WorkerDeploymentVersion previous_deployment_version = 4;
21312120
// The ramping version percentage before executing this operation.
21322121
float previous_percentage = 3;
21332122
}

temporal/api/workflowservice/v1/service.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -858,10 +858,10 @@ service WorkflowService {
858858
// Experimental. This API might significantly change or be removed in a future release.
859859
rpc SetWorkerDeploymentCurrentVersion (SetWorkerDeploymentCurrentVersionRequest) returns (SetWorkerDeploymentCurrentVersionResponse) {
860860
option (google.api.http) = {
861-
post: "/namespaces/{namespace}/worker-deployments/set-current-version"
861+
post: "/namespaces/{namespace}/worker-deployments/{deployment_name}/set-current-version"
862862
body: "*"
863863
additional_bindings {
864-
post: "/api/v1/namespaces/{namespace}/worker-deployments/set-current-version"
864+
post: "/api/v1/namespaces/{namespace}/worker-deployments/{deployment_name}/set-current-version"
865865
body: "*"
866866
}
867867
};
@@ -912,10 +912,10 @@ service WorkflowService {
912912
// Experimental. This API might significantly change or be removed in a future release.
913913
rpc SetWorkerDeploymentRampingVersion (SetWorkerDeploymentRampingVersionRequest) returns (SetWorkerDeploymentRampingVersionResponse) {
914914
option (google.api.http) = {
915-
post: "/namespaces/{namespace}/worker-deployments/set-ramping-version"
915+
post: "/namespaces/{namespace}/worker-deployments/{deployment_name}/set-ramping-version"
916916
body: "*"
917917
additional_bindings {
918-
post: "/api/v1/namespaces/{namespace}/worker-deployments/set-ramping-version"
918+
post: "/api/v1/namespaces/{namespace}/worker-deployments/{deployment_name}/set-ramping-version"
919919
body: "*"
920920
}
921921
};

0 commit comments

Comments
 (0)