diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index a0fd540fa..226b91d91 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -12875,6 +12875,11 @@ "properties": { "deploymentVersion": { "$ref": "#/definitions/v1WorkerDeploymentVersion" + }, + "revisionNumber": { + "type": "string", + "format": "int64", + "description": "Revision number of the task queue routing config at the time the target\nwas declined. If an incoming target's revision is <= this value, it is\nnot newer and is not used for deciding whether or not to suppress the\nupgrade signal." } }, "description": "Wrapper for a target deployment version that the SDK declined to upgrade to.\nSee declined_target_version_upgrade on WorkflowExecutionStartedEventAttributes." diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index d753575c6..a418b7aee 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -9757,6 +9757,13 @@ components: properties: deploymentVersion: $ref: '#/components/schemas/WorkerDeploymentVersion' + revisionNumber: + type: string + description: |- + Revision number of the task queue routing config at the time the target + was declined. If an incoming target's revision is <= this value, it is + not newer and is not used for deciding whether or not to suppress the + upgrade signal. description: |- Wrapper for a target deployment version that the SDK declined to upgrade to. See declined_target_version_upgrade on WorkflowExecutionStartedEventAttributes. diff --git a/temporal/api/history/v1/message.proto b/temporal/api/history/v1/message.proto index bcd71928a..e873412bf 100644 --- a/temporal/api/history/v1/message.proto +++ b/temporal/api/history/v1/message.proto @@ -210,6 +210,11 @@ message WorkflowExecutionStartedEventAttributes { // See declined_target_version_upgrade on WorkflowExecutionStartedEventAttributes. message DeclinedTargetVersionUpgrade { temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 1; + // Revision number of the task queue routing config at the time the target + // was declined. If an incoming target's revision is <= this value, it is + // not newer and is not used for deciding whether or not to suppress the + // upgrade signal. + int64 revision_number = 2; } message WorkflowExecutionCompletedEventAttributes {