@@ -11,13 +11,13 @@ option csharp_namespace = "Temporalio.Api.Deployment.V1";
1111
1212import "google/protobuf/timestamp.proto" ;
1313
14+ import "temporal/api/enums/v1/workflow.proto" ;
1415import "temporal/api/enums/v1/deployment.proto" ;
1516import "temporal/api/enums/v1/task_queue.proto" ;
1617import "temporal/api/common/v1/message.proto" ;
1718import "temporal/api/compute/v1/config.proto" ;
1819
1920// Worker Deployment options set in SDK that need to be sent to server in every poll.
20- // Experimental. Worker Deployments are experimental and might significantly change in the future.
2121message WorkerDeploymentOptions {
2222 // Required when `worker_versioning_mode==VERSIONED`.
2323 string deployment_name = 1 ;
@@ -87,13 +87,12 @@ message DeploymentListInfo {
8787}
8888
8989
90- // A Worker Deployment Version (Version, for short) represents all workers of the same
91- // code and config within a Deployment. Workers of the same Version are expected to
92- // behave exactly the same so when executions move between them there are no
90+ // A Worker Deployment Version (Version, for short) represents all workers of the same
91+ // code and config within a Deployment. Workers of the same Version are expected to
92+ // behave exactly the same so when executions move between them there are no
9393// non-determinism issues.
94- // Worker Deployment Versions are created in Temporal server automatically when
94+ // Worker Deployment Versions are created in Temporal server automatically when
9595// their first poller arrives to the server.
96- // Experimental. Worker Deployments are experimental and might significantly change in the future.
9796message WorkerDeploymentVersionInfo {
9897 // Deprecated. Use `deployment_version`.
9998 string version = 1 [deprecated = true ];
@@ -175,7 +174,6 @@ message WorkerDeploymentVersionInfo {
175174
176175// Information about workflow drainage to help the user determine when it is safe
177176// to decommission a Version. Not present while version is current or ramping.
178- // Experimental. Worker Deployments are experimental and might significantly change in the future.
179177message VersionDrainageInfo {
180178 // Set to DRAINING when the version first stops accepting new executions (is no longer current or ramping).
181179 // Set to DRAINED when no more open pinned workflows exist on this version.
@@ -186,14 +184,13 @@ message VersionDrainageInfo {
186184 google.protobuf.Timestamp last_checked_time = 3 ;
187185}
188186
189- // A Worker Deployment (Deployment, for short) represents all workers serving
190- // a shared set of Task Queues. Typically, a Deployment represents one service or
187+ // A Worker Deployment (Deployment, for short) represents all workers serving
188+ // a shared set of Task Queues. Typically, a Deployment represents one service or
191189// application.
192- // A Deployment contains multiple Deployment Versions, each representing a different
190+ // A Deployment contains multiple Deployment Versions, each representing a different
193191// version of workers. (see documentation of WorkerDeploymentVersionInfo)
194192// Deployment records are created in Temporal server automatically when their
195193// first poller arrives to the server.
196- // Experimental. Worker Deployments are experimental and might significantly change in the future.
197194message WorkerDeploymentInfo {
198195 // Identifies a Worker Deployment. Must be unique within the namespace.
199196 string name = 1 ;
@@ -257,6 +254,7 @@ message WorkerDeploymentInfo {
257254 // Timestamp when this version last stopped being current or ramping.
258255 // Cleared if the version becomes current or ramping again.
259256 google.protobuf.Timestamp last_deactivation_time = 10 ;
257+ temporal.api.compute.v1.ComputeConfigSummary compute_config = 13 ;
260258 }
261259}
262260
@@ -317,11 +315,23 @@ message RoutingConfig {
317315 int64 revision_number = 10 ;
318316}
319317
320- // Used as part of WorkflowExecutionStartedEventAttributes to pass down the AutoUpgrade behavior and source deployment version
318+ // Used as part of WorkflowExecutionStartedEventAttributes to pass down the AutoUpgrade behavior and source deployment version
321319// to a workflow execution whose parent/previous workflow has an AutoUpgrade behavior.
320+ // Also used for Upgrade-on-CaN behaviors AutoUpgrade and UseRampingVersion.
322321message InheritedAutoUpgradeInfo {
323322 // The source deployment version of the parent/previous workflow.
324323 temporal.api.deployment.v1.WorkerDeploymentVersion source_deployment_version = 1 ;
325324 // The revision number of the source deployment version of the parent/previous workflow.
326325 int64 source_deployment_revision_number = 2 ;
326+ // Experimental.
327+ // If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
328+ // specified in that command.
329+ // Only used for the initial task of this run and the initial task of any retries of this run.
330+ // Not passed to children or to future continue-as-new.
331+ //
332+ // Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
333+ // a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
334+ // with history events generated during that time, know that an UNSPECIFIED value here is equivalent to AutoUpgrade
335+ // value if the InheritedAutoUpgradeInfo is non-empty.
336+ temporal.api.enums.v1.ContinueAsNewVersioningBehavior continue_as_new_initial_versioning_behavior = 3 ;
327337}
0 commit comments