diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 60872a2de..3e62531ad 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -16179,11 +16179,10 @@ "SUGGEST_CONTINUE_AS_NEW_REASON_UNSPECIFIED", "SUGGEST_CONTINUE_AS_NEW_REASON_HISTORY_SIZE_TOO_LARGE", "SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_HISTORY_EVENTS", - "SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_UPDATES", - "SUGGEST_CONTINUE_AS_NEW_REASON_TARGET_WORKER_DEPLOYMENT_VERSION_CHANGED" + "SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_UPDATES" ], "default": "SUGGEST_CONTINUE_AS_NEW_REASON_UNSPECIFIED", - "description": "SuggestContinueAsNewReason specifies why SuggestContinueAsNew is true.\n\n - SUGGEST_CONTINUE_AS_NEW_REASON_HISTORY_SIZE_TOO_LARGE: Workflow History size is getting too large.\n - SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_HISTORY_EVENTS: Workflow History event count is getting too large.\n - SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_UPDATES: Workflow's count of completed plus in-flight updates is too large.\n - SUGGEST_CONTINUE_AS_NEW_REASON_TARGET_WORKER_DEPLOYMENT_VERSION_CHANGED: Workflow's Target Worker Deployment Version is different from its\nCurrent Version and the workflow is versioned." + "description": "SuggestContinueAsNewReason specifies why SuggestContinueAsNew is true.\n\n - SUGGEST_CONTINUE_AS_NEW_REASON_HISTORY_SIZE_TOO_LARGE: Workflow History size is getting too large.\n - SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_HISTORY_EVENTS: Workflow History event count is getting too large.\n - SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_UPDATES: Workflow's count of completed plus in-flight updates is too large." }, "v1TaskIdBlock": { "type": "object", @@ -18444,6 +18443,10 @@ }, "description": "The reason(s) that suggest_continue_as_new is true, if it is.\nUnset if suggest_continue_as_new is false." }, + "targetWorkerDeploymentVersionChanged": { + "type": "boolean", + "description": "True if Workflow's Target Worker Deployment Version is different from its Pinned Version and\nthe workflow is Pinned.\nExperimental." + }, "historySizeBytes": { "type": "string", "format": "int64", diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index 7098105c5..9fea4880f 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -17188,12 +17188,17 @@ components: - SUGGEST_CONTINUE_AS_NEW_REASON_HISTORY_SIZE_TOO_LARGE - SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_HISTORY_EVENTS - SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_UPDATES - - SUGGEST_CONTINUE_AS_NEW_REASON_TARGET_WORKER_DEPLOYMENT_VERSION_CHANGED type: string format: enum description: |- The reason(s) that suggest_continue_as_new is true, if it is. Unset if suggest_continue_as_new is false. + targetWorkerDeploymentVersionChanged: + type: boolean + description: |- + True if Workflow's Target Worker Deployment Version is different from its Pinned Version and + the workflow is Pinned. + Experimental. historySizeBytes: type: string description: |- diff --git a/temporal/api/enums/v1/workflow.proto b/temporal/api/enums/v1/workflow.proto index e8dc52ef1..3e73ae6fa 100644 --- a/temporal/api/enums/v1/workflow.proto +++ b/temporal/api/enums/v1/workflow.proto @@ -204,7 +204,8 @@ enum SuggestContinueAsNewReason { // Workflow's count of completed plus in-flight updates is too large. SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_UPDATES = 3; - // Workflow's Target Worker Deployment Version is different from its - // Current Version and the workflow is versioned. - SUGGEST_CONTINUE_AS_NEW_REASON_TARGET_WORKER_DEPLOYMENT_VERSION_CHANGED = 4; + // TARGET_WORKER_DEPLOYMENT_VERSION_CHANGED is no longer a reason for suggest_continue_as_new. + // See target_worker_deployment_version_changed to find out if Target Version Changed. + reserved 4; + reserved "SUGGEST_CONTINUE_AS_NEW_REASON_TARGET_WORKER_DEPLOYMENT_VERSION_CHANGED"; } diff --git a/temporal/api/history/v1/message.proto b/temporal/api/history/v1/message.proto index 4243baab6..2fb99f7e9 100644 --- a/temporal/api/history/v1/message.proto +++ b/temporal/api/history/v1/message.proto @@ -280,6 +280,10 @@ message WorkflowTaskStartedEventAttributes { // The reason(s) that suggest_continue_as_new is true, if it is. // Unset if suggest_continue_as_new is false. repeated temporal.api.enums.v1.SuggestContinueAsNewReason suggest_continue_as_new_reasons = 8; + // True if Workflow's Target Worker Deployment Version is different from its Pinned Version and + // the workflow is Pinned. + // Experimental. + bool target_worker_deployment_version_changed = 9; // Total history size in bytes, which the workflow might use to decide when to // continue-as-new regardless of the suggestion. Note that history event count is // just the event id of this event, so we don't include it explicitly here.