From 057923e03a4fda52828d03b0b44e5acad6891767 Mon Sep 17 00:00:00 2001 From: Kundan <281732484+ks-temporal@users.noreply.github.com> Date: Fri, 2 Oct 2026 10:00:37 -0700 Subject: [PATCH 1/2] Deprecate BatchOperationResetActivities.reset_attempts The ResetActivityRequest has no equivalent field, and the server always resets the attempt count. A false value has no effect. --- temporal/api/batch/v1/message.proto | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/temporal/api/batch/v1/message.proto b/temporal/api/batch/v1/message.proto index 63d3fafdb..85842fe0b 100644 --- a/temporal/api/batch/v1/message.proto +++ b/temporal/api/batch/v1/message.proto @@ -176,8 +176,10 @@ message BatchOperationResetActivities { bool match_all = 3; } - // Setting this flag will also reset the number of attempts. - bool reset_attempts = 4; + // Deprecated. Not supported: a reset always resets the number of attempts, and + // temporal.api.workflowservice.v1.ResetActivityRequest has no equivalent field to carry this + // one, so it is ignored. + bool reset_attempts = 4 [deprecated = true]; // Setting this flag will also reset the heartbeat details. bool reset_heartbeat = 5; From e22d802f1a1d8c3313a2c411ea138baa8971021d Mon Sep 17 00:00:00 2001 From: Kundan <281732484+ks-temporal@users.noreply.github.com> Date: Fri, 2 Oct 2026 12:28:13 -0700 Subject: [PATCH 2/2] Regerenate api files --- openapi/openapiv2.json | 2 +- openapi/openapiv3.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 0b643ceb7..c6039e1ab 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -14545,7 +14545,7 @@ }, "resetAttempts": { "type": "boolean", - "description": "Setting this flag will also reset the number of attempts." + "description": "Deprecated. Not supported: a reset always resets the number of attempts, and\ntemporal.api.workflowservice.v1.ResetActivityRequest has no equivalent field to carry this\none, so it is ignored." }, "resetHeartbeat": { "type": "boolean", diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index 2aa7c45bf..9c02a3c6d 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -10565,7 +10565,10 @@ components: type: boolean resetAttempts: type: boolean - description: Setting this flag will also reset the number of attempts. + description: |- + Deprecated. Not supported: a reset always resets the number of attempts, and + temporal.api.workflowservice.v1.ResetActivityRequest has no equivalent field to carry this + one, so it is ignored. resetHeartbeat: type: boolean description: Setting this flag will also reset the heartbeat details.