From 2d24674d43a9455a8b6e52e1ecadc5f6648fa2d4 Mon Sep 17 00:00:00 2001 From: Shivam Saraf Date: Fri, 23 May 2025 15:07:52 -0700 Subject: [PATCH 1/5] added latest_version, current_version, ramping_version in list_deployments --- openapi/openapiv2.json | 9 +++++++++ openapi/openapiv3.yaml | 6 ++++++ temporal/api/workflowservice/v1/request_response.proto | 3 +++ 3 files changed, 18 insertions(+) diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 57fc95403..2c6d0f11e 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -6812,6 +6812,15 @@ }, "routingConfig": { "$ref": "#/definitions/v1RoutingConfig" + }, + "latestVersionSummary": { + "$ref": "#/definitions/WorkerDeploymentInfoWorkerDeploymentVersionSummary" + }, + "currentVersionSummary": { + "$ref": "#/definitions/WorkerDeploymentInfoWorkerDeploymentVersionSummary" + }, + "rampingVersionSummary": { + "$ref": "#/definitions/WorkerDeploymentInfoWorkerDeploymentVersionSummary" } }, "title": "A subset of WorkerDeploymentInfo" diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index 1880a9b36..669ebbceb 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -8251,6 +8251,12 @@ components: format: date-time routingConfig: $ref: '#/components/schemas/RoutingConfig' + latestVersionSummary: + $ref: '#/components/schemas/WorkerDeploymentInfo_WorkerDeploymentVersionSummary' + currentVersionSummary: + $ref: '#/components/schemas/WorkerDeploymentInfo_WorkerDeploymentVersionSummary' + rampingVersionSummary: + $ref: '#/components/schemas/WorkerDeploymentInfo_WorkerDeploymentVersionSummary' description: A subset of WorkerDeploymentInfo ListWorkflowExecutionsResponse: type: object diff --git a/temporal/api/workflowservice/v1/request_response.proto b/temporal/api/workflowservice/v1/request_response.proto index 48400be1e..d709b1780 100644 --- a/temporal/api/workflowservice/v1/request_response.proto +++ b/temporal/api/workflowservice/v1/request_response.proto @@ -2146,6 +2146,9 @@ message ListWorkerDeploymentsResponse { string name = 1; google.protobuf.Timestamp create_time = 2; temporal.api.deployment.v1.RoutingConfig routing_config = 3; + temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary latest_version_summary = 4; + temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary current_version_summary = 5; + temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary ramping_version_summary = 6; } } From f6c47f902b61f60a69f68658bd73015ba42690fb Mon Sep 17 00:00:00 2001 From: Shivam Saraf Date: Sat, 24 May 2025 17:29:50 -0400 Subject: [PATCH 2/5] version status enum: --- openapi/openapiv2.json | 20 ++++++++++++++++++++ openapi/openapiv3.yaml | 20 ++++++++++++++++++++ temporal/api/deployment/v1/message.proto | 6 ++++++ temporal/api/enums/v1/deployment.proto | 24 ++++++++++++++++++++++++ 4 files changed, 70 insertions(+) diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 57fc95403..cfd0d013d 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -7095,6 +7095,10 @@ "type": "string", "description": "Deprecated. Use `deployment_version`." }, + "status": { + "$ref": "#/definitions/v1VersionStatus", + "description": "The status of the Worker Deployment Version." + }, "deploymentVersion": { "$ref": "#/definitions/v1WorkerDeploymentVersion", "description": "Required." @@ -14831,6 +14835,18 @@ } } }, + "v1VersionStatus": { + "type": "string", + "enum": [ + "VERSION_STATUS_UNSPECIFIED", + "VERSION_STATUS_CURRENT", + "VERSION_STATUS_RAMPING", + "VERSION_STATUS_DRAINING", + "VERSION_STATUS_DRAINED" + ], + "default": "VERSION_STATUS_UNSPECIFIED", + "description": "Specify the status of a Worker Deployment Version.\nExperimental. Worker Deployments are experimental and might significantly change in the future.\n\n - VERSION_STATUS_UNSPECIFIED: The Worker Deployment Version has been created inside the Worker Deployment but is not used by any\nworkflow executions.\n - VERSION_STATUS_CURRENT: The Worker Deployment Version is the current version of the Worker Deployment. All new workflow executions \nand tasks of existing unversioned or AutoUpgrade workflows are routed to this version.\n - VERSION_STATUS_RAMPING: The Worker Deployment Version is the ramping version of the Worker Deployment. A subset of new Pinned workflow executions are \nrouted to this version. Moreover, a portion of existing unversioned or AutoUpgrade workflow executions are also routed to this version.\n - VERSION_STATUS_DRAINING: The Worker Deployment Version is not used by new workflows but is still used by\nopen pinned workflows. The version cannot be decommissioned safely.\n - VERSION_STATUS_DRAINED: The Worker Deployment Version is not used by new or open workflows, but might be still needed by\nQueries sent to closed workflows. The version can be decommissioned safely if user does\nnot query closed workflows. If the user does query closed workflows for some time x after\nworkflows are closed, they should decommission the version after it has been drained for that duration." + }, "v1VersioningBehavior": { "type": "string", "enum": [ @@ -14945,6 +14961,10 @@ "type": "string", "description": "Deprecated. Use `deployment_version`." }, + "status": { + "$ref": "#/definitions/v1VersionStatus", + "description": "The status of the Worker Deployment Version." + }, "deploymentVersion": { "$ref": "#/definitions/v1WorkerDeploymentVersion", "description": "Required." diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index 1880a9b36..f5e44b765 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -12211,6 +12211,16 @@ components: version: type: string description: Deprecated. Use `deployment_version`. + status: + enum: + - VERSION_STATUS_UNSPECIFIED + - VERSION_STATUS_CURRENT + - VERSION_STATUS_RAMPING + - VERSION_STATUS_DRAINING + - VERSION_STATUS_DRAINED + type: string + description: The status of the Worker Deployment Version. + format: enum deploymentVersion: allOf: - $ref: '#/components/schemas/WorkerDeploymentVersion' @@ -12308,6 +12318,16 @@ components: version: type: string description: Deprecated. Use `deployment_version`. + status: + enum: + - VERSION_STATUS_UNSPECIFIED + - VERSION_STATUS_CURRENT + - VERSION_STATUS_RAMPING + - VERSION_STATUS_DRAINING + - VERSION_STATUS_DRAINED + type: string + description: The status of the Worker Deployment Version. + format: enum deploymentVersion: allOf: - $ref: '#/components/schemas/WorkerDeploymentVersion' diff --git a/temporal/api/deployment/v1/message.proto b/temporal/api/deployment/v1/message.proto index 15b9230db..6e4109292 100644 --- a/temporal/api/deployment/v1/message.proto +++ b/temporal/api/deployment/v1/message.proto @@ -97,6 +97,9 @@ message WorkerDeploymentVersionInfo { // Deprecated. Use `deployment_version`. string version = 1 [deprecated = true]; + // The status of the Worker Deployment Version. + temporal.api.enums.v1.VersionStatus status = 14; + // Required. WorkerDeploymentVersion deployment_version = 11; string deployment_name = 2; @@ -195,6 +198,9 @@ message WorkerDeploymentInfo { // Deprecated. Use `deployment_version`. string version = 1 [deprecated = true]; + // The status of the Worker Deployment Version. + temporal.api.enums.v1.VersionStatus status = 11; + // Required. WorkerDeploymentVersion deployment_version = 4; google.protobuf.Timestamp create_time = 2; diff --git a/temporal/api/enums/v1/deployment.proto b/temporal/api/enums/v1/deployment.proto index 4cf3944d6..9ca1865f9 100644 --- a/temporal/api/enums/v1/deployment.proto +++ b/temporal/api/enums/v1/deployment.proto @@ -72,3 +72,27 @@ enum WorkerVersioningMode { // VersioningBehavior enum.) WORKER_VERSIONING_MODE_VERSIONED = 2; } + +// (-- api-linter: core::0216::synonyms=disabled +// aip.dev/not-precedent: Call this status because it is . --) +// Specify the status of a Worker Deployment Version. +// Experimental. Worker Deployments are experimental and might significantly change in the future. +enum VersionStatus { + // The Worker Deployment Version has been created inside the Worker Deployment but is not used by any + // workflow executions. + VERSION_STATUS_UNSPECIFIED = 0; + // The Worker Deployment Version is the current version of the Worker Deployment. All new workflow executions + // and tasks of existing unversioned or AutoUpgrade workflows are routed to this version. + VERSION_STATUS_CURRENT = 1; + // The Worker Deployment Version is the ramping version of the Worker Deployment. A subset of new Pinned workflow executions are + // routed to this version. Moreover, a portion of existing unversioned or AutoUpgrade workflow executions are also routed to this version. + VERSION_STATUS_RAMPING = 2; + // The Worker Deployment Version is not used by new workflows but is still used by + // open pinned workflows. The version cannot be decommissioned safely. + VERSION_STATUS_DRAINING = 3; + // The Worker Deployment Version is not used by new or open workflows, but might be still needed by + // Queries sent to closed workflows. The version can be decommissioned safely if user does + // not query closed workflows. If the user does query closed workflows for some time x after + // workflows are closed, they should decommission the version after it has been drained for that duration. + VERSION_STATUS_DRAINED = 4; +} From 85b97218757ea1a4f5bc7e22ec305c0a5409bdcc Mon Sep 17 00:00:00 2001 From: Shivam Saraf Date: Sat, 24 May 2025 23:43:51 -0400 Subject: [PATCH 3/5] add version status to ListWorkerDeployments --- openapi/openapiv2.json | 3 +++ openapi/openapiv3.yaml | 9 +++++++++ temporal/api/workflowservice/v1/request_response.proto | 1 + 3 files changed, 13 insertions(+) diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index cfd0d013d..6e0aa012f 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -6812,6 +6812,9 @@ }, "routingConfig": { "$ref": "#/definitions/v1RoutingConfig" + }, + "status": { + "$ref": "#/definitions/v1VersionStatus" } }, "title": "A subset of WorkerDeploymentInfo" diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index f5e44b765..5aeca98f2 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -8251,6 +8251,15 @@ components: format: date-time routingConfig: $ref: '#/components/schemas/RoutingConfig' + status: + enum: + - VERSION_STATUS_UNSPECIFIED + - VERSION_STATUS_CURRENT + - VERSION_STATUS_RAMPING + - VERSION_STATUS_DRAINING + - VERSION_STATUS_DRAINED + type: string + format: enum description: A subset of WorkerDeploymentInfo ListWorkflowExecutionsResponse: type: object diff --git a/temporal/api/workflowservice/v1/request_response.proto b/temporal/api/workflowservice/v1/request_response.proto index 48400be1e..c5da5202b 100644 --- a/temporal/api/workflowservice/v1/request_response.proto +++ b/temporal/api/workflowservice/v1/request_response.proto @@ -2146,6 +2146,7 @@ message ListWorkerDeploymentsResponse { string name = 1; google.protobuf.Timestamp create_time = 2; temporal.api.deployment.v1.RoutingConfig routing_config = 3; + temporal.api.enums.v1.VersionStatus status = 4; } } From c28f961f9e75a69f07b5484552beb5b1163a9b2b Mon Sep 17 00:00:00 2001 From: Shivam Saraf Date: Sun, 25 May 2025 00:10:33 -0400 Subject: [PATCH 4/5] remove status from WorkerDeploymentSummary --- openapi/openapiv2.json | 3 --- openapi/openapiv3.yaml | 9 --------- temporal/api/workflowservice/v1/request_response.proto | 1 - 3 files changed, 13 deletions(-) diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 7f1f6464a..1aa1a9672 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -6821,9 +6821,6 @@ }, "rampingVersionSummary": { "$ref": "#/definitions/WorkerDeploymentInfoWorkerDeploymentVersionSummary" - }, - "status": { - "$ref": "#/definitions/v1VersionStatus" } }, "title": "A subset of WorkerDeploymentInfo" diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index 8dc32dc1c..4cf33a4b9 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -8257,15 +8257,6 @@ components: $ref: '#/components/schemas/WorkerDeploymentInfo_WorkerDeploymentVersionSummary' rampingVersionSummary: $ref: '#/components/schemas/WorkerDeploymentInfo_WorkerDeploymentVersionSummary' - status: - enum: - - VERSION_STATUS_UNSPECIFIED - - VERSION_STATUS_CURRENT - - VERSION_STATUS_RAMPING - - VERSION_STATUS_DRAINING - - VERSION_STATUS_DRAINED - type: string - format: enum description: A subset of WorkerDeploymentInfo ListWorkflowExecutionsResponse: type: object diff --git a/temporal/api/workflowservice/v1/request_response.proto b/temporal/api/workflowservice/v1/request_response.proto index 927a00d03..d709b1780 100644 --- a/temporal/api/workflowservice/v1/request_response.proto +++ b/temporal/api/workflowservice/v1/request_response.proto @@ -2149,7 +2149,6 @@ message ListWorkerDeploymentsResponse { temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary latest_version_summary = 4; temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary current_version_summary = 5; temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary ramping_version_summary = 6; - temporal.api.enums.v1.VersionStatus status = 7; } } From 8ecd4336759608463591c69dfa0c118e3d2f9baf Mon Sep 17 00:00:00 2001 From: Shivam Saraf Date: Mon, 26 May 2025 07:42:44 -0400 Subject: [PATCH 5/5] comments: --- openapi/openapiv2.json | 29 ++++++++++++------------ openapi/openapiv3.yaml | 22 ++++++++++-------- temporal/api/deployment/v1/message.proto | 4 ++-- temporal/api/enums/v1/deployment.proto | 16 +++++++------ 4 files changed, 38 insertions(+), 33 deletions(-) diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 1aa1a9672..174386d8e 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -7105,7 +7105,7 @@ "description": "Deprecated. Use `deployment_version`." }, "status": { - "$ref": "#/definitions/v1VersionStatus", + "$ref": "#/definitions/v1WorkerDeploymentVersionStatus", "description": "The status of the Worker Deployment Version." }, "deploymentVersion": { @@ -14844,18 +14844,6 @@ } } }, - "v1VersionStatus": { - "type": "string", - "enum": [ - "VERSION_STATUS_UNSPECIFIED", - "VERSION_STATUS_CURRENT", - "VERSION_STATUS_RAMPING", - "VERSION_STATUS_DRAINING", - "VERSION_STATUS_DRAINED" - ], - "default": "VERSION_STATUS_UNSPECIFIED", - "description": "Specify the status of a Worker Deployment Version.\nExperimental. Worker Deployments are experimental and might significantly change in the future.\n\n - VERSION_STATUS_UNSPECIFIED: The Worker Deployment Version has been created inside the Worker Deployment but is not used by any\nworkflow executions.\n - VERSION_STATUS_CURRENT: The Worker Deployment Version is the current version of the Worker Deployment. All new workflow executions \nand tasks of existing unversioned or AutoUpgrade workflows are routed to this version.\n - VERSION_STATUS_RAMPING: The Worker Deployment Version is the ramping version of the Worker Deployment. A subset of new Pinned workflow executions are \nrouted to this version. Moreover, a portion of existing unversioned or AutoUpgrade workflow executions are also routed to this version.\n - VERSION_STATUS_DRAINING: The Worker Deployment Version is not used by new workflows but is still used by\nopen pinned workflows. The version cannot be decommissioned safely.\n - VERSION_STATUS_DRAINED: The Worker Deployment Version is not used by new or open workflows, but might be still needed by\nQueries sent to closed workflows. The version can be decommissioned safely if user does\nnot query closed workflows. If the user does query closed workflows for some time x after\nworkflows are closed, they should decommission the version after it has been drained for that duration." - }, "v1VersioningBehavior": { "type": "string", "enum": [ @@ -14971,7 +14959,7 @@ "description": "Deprecated. Use `deployment_version`." }, "status": { - "$ref": "#/definitions/v1VersionStatus", + "$ref": "#/definitions/v1WorkerDeploymentVersionStatus", "description": "The status of the Worker Deployment Version." }, "deploymentVersion": { @@ -15034,6 +15022,19 @@ }, "description": "A Worker Deployment Version (Version, for short) represents all workers of the same \ncode and config within a Deployment. Workers of the same Version are expected to \nbehave exactly the same so when executions move between them there are no \nnon-determinism issues.\nWorker Deployment Versions are created in Temporal server automatically when \ntheir first poller arrives to the server.\nExperimental. Worker Deployments are experimental and might significantly change in the future." }, + "v1WorkerDeploymentVersionStatus": { + "type": "string", + "enum": [ + "WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED", + "WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE", + "WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT", + "WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING", + "WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING", + "WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED" + ], + "default": "WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED", + "description": "Specify the status of a Worker Deployment Version.\nExperimental. Worker Deployments are experimental and might significantly change in the future.\n\n - WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE: The Worker Deployment Version has been created inside the Worker Deployment but is not used by any\nworkflow executions. These Versions can still have workflows if they have an explicit Versioning Override targeting\nthis Version. Such Versioning Override could be set at workflow start time, or at a later time via `UpdateWorkflowExecutionOptions`.\n - WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT: The Worker Deployment Version is the current version of the Worker Deployment. All new workflow executions \nand tasks of existing unversioned or AutoUpgrade workflows are routed to this version.\n - WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING: The Worker Deployment Version is the ramping version of the Worker Deployment. A subset of new Pinned workflow executions are \nrouted to this version. Moreover, a portion of existing unversioned or AutoUpgrade workflow executions are also routed to this version.\n - WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING: The Worker Deployment Version is not used by new workflows but is still used by\nopen pinned workflows. The version cannot be decommissioned safely.\n - WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED: The Worker Deployment Version is not used by new or open workflows, but might be still needed by\nQueries sent to closed workflows. The version can be decommissioned safely if user does\nnot query closed workflows. If the user does query closed workflows for some time x after\nworkflows are closed, they should decommission the version after it has been drained for that duration." + }, "v1WorkerVersionCapabilities": { "type": "object", "properties": { diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index 4cf33a4b9..97375149f 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -12219,11 +12219,12 @@ components: description: Deprecated. Use `deployment_version`. status: enum: - - VERSION_STATUS_UNSPECIFIED - - VERSION_STATUS_CURRENT - - VERSION_STATUS_RAMPING - - VERSION_STATUS_DRAINING - - VERSION_STATUS_DRAINED + - WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED + - WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE + - WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT + - WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING + - WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING + - WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED type: string description: The status of the Worker Deployment Version. format: enum @@ -12326,11 +12327,12 @@ components: description: Deprecated. Use `deployment_version`. status: enum: - - VERSION_STATUS_UNSPECIFIED - - VERSION_STATUS_CURRENT - - VERSION_STATUS_RAMPING - - VERSION_STATUS_DRAINING - - VERSION_STATUS_DRAINED + - WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED + - WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE + - WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT + - WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING + - WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING + - WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED type: string description: The status of the Worker Deployment Version. format: enum diff --git a/temporal/api/deployment/v1/message.proto b/temporal/api/deployment/v1/message.proto index 6e4109292..b35d7ec9e 100644 --- a/temporal/api/deployment/v1/message.proto +++ b/temporal/api/deployment/v1/message.proto @@ -98,7 +98,7 @@ message WorkerDeploymentVersionInfo { string version = 1 [deprecated = true]; // The status of the Worker Deployment Version. - temporal.api.enums.v1.VersionStatus status = 14; + temporal.api.enums.v1.WorkerDeploymentVersionStatus status = 14; // Required. WorkerDeploymentVersion deployment_version = 11; @@ -199,7 +199,7 @@ message WorkerDeploymentInfo { string version = 1 [deprecated = true]; // The status of the Worker Deployment Version. - temporal.api.enums.v1.VersionStatus status = 11; + temporal.api.enums.v1.WorkerDeploymentVersionStatus status = 11; // Required. WorkerDeploymentVersion deployment_version = 4; diff --git a/temporal/api/enums/v1/deployment.proto b/temporal/api/enums/v1/deployment.proto index 9ca1865f9..710d7c38d 100644 --- a/temporal/api/enums/v1/deployment.proto +++ b/temporal/api/enums/v1/deployment.proto @@ -77,22 +77,24 @@ enum WorkerVersioningMode { // aip.dev/not-precedent: Call this status because it is . --) // Specify the status of a Worker Deployment Version. // Experimental. Worker Deployments are experimental and might significantly change in the future. -enum VersionStatus { +enum WorkerDeploymentVersionStatus { + WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED = 0; // The Worker Deployment Version has been created inside the Worker Deployment but is not used by any - // workflow executions. - VERSION_STATUS_UNSPECIFIED = 0; + // workflow executions. These Versions can still have workflows if they have an explicit Versioning Override targeting + // this Version. Such Versioning Override could be set at workflow start time, or at a later time via `UpdateWorkflowExecutionOptions`. + WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE = 1; // The Worker Deployment Version is the current version of the Worker Deployment. All new workflow executions // and tasks of existing unversioned or AutoUpgrade workflows are routed to this version. - VERSION_STATUS_CURRENT = 1; + WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT = 2; // The Worker Deployment Version is the ramping version of the Worker Deployment. A subset of new Pinned workflow executions are // routed to this version. Moreover, a portion of existing unversioned or AutoUpgrade workflow executions are also routed to this version. - VERSION_STATUS_RAMPING = 2; + WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING = 3; // The Worker Deployment Version is not used by new workflows but is still used by // open pinned workflows. The version cannot be decommissioned safely. - VERSION_STATUS_DRAINING = 3; + WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING = 4; // The Worker Deployment Version is not used by new or open workflows, but might be still needed by // Queries sent to closed workflows. The version can be decommissioned safely if user does // not query closed workflows. If the user does query closed workflows for some time x after // workflows are closed, they should decommission the version after it has been drained for that duration. - VERSION_STATUS_DRAINED = 4; + WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED = 5; }