diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 343c9f702..d5c1f8632 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -12203,6 +12203,10 @@ "activityPaused": { "type": "boolean", "description": "Will be set to true if the activity is paused." + }, + "activityReset": { + "type": "boolean", + "description": "Will be set to true if the activity was reset.\nApplies only to the current run." } } }, @@ -12216,6 +12220,10 @@ "activityPaused": { "type": "boolean", "description": "Will be set to true if the activity is paused." + }, + "activityReset": { + "type": "boolean", + "description": "Will be set to true if the activity was reset.\nApplies only to the current run." } } }, diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index cc5a7315f..0d3d43614 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -9254,6 +9254,11 @@ components: activityPaused: type: boolean description: Will be set to true if the activity is paused. + activityReset: + type: boolean + description: |- + Will be set to true if the activity was reset. + Applies only to the current run. RecordActivityTaskHeartbeatRequest: type: object properties: @@ -9281,6 +9286,11 @@ components: activityPaused: type: boolean description: Will be set to true if the activity is paused. + activityReset: + type: boolean + description: |- + Will be set to true if the activity was reset. + Applies only to the current run. RegisterNamespaceRequest: type: object properties: diff --git a/temporal/api/workflowservice/v1/request_response.proto b/temporal/api/workflowservice/v1/request_response.proto index 011c192cd..4f1d09adc 100644 --- a/temporal/api/workflowservice/v1/request_response.proto +++ b/temporal/api/workflowservice/v1/request_response.proto @@ -529,6 +529,10 @@ message RecordActivityTaskHeartbeatResponse { // Will be set to true if the activity is paused. bool activity_paused = 2; + + // Will be set to true if the activity was reset. + // Applies only to the current run. + bool activity_reset = 3; } message RecordActivityTaskHeartbeatByIdRequest { @@ -553,6 +557,10 @@ message RecordActivityTaskHeartbeatByIdResponse { // Will be set to true if the activity is paused. bool activity_paused = 2; + + // Will be set to true if the activity was reset. + // Applies only to the current run. + bool activity_reset = 3; } message RespondActivityTaskCompletedRequest { @@ -1840,13 +1848,13 @@ message UpdateActivityOptionsRequest { // Controls which fields from `activity_options` will be applied google.protobuf.FieldMask update_mask = 5; - // either activity id or activity type must be provided - oneof activity { - // Only activity with this ID will be updated. - string id = 6; - // Update all running activities of this type. - string type = 7; - } + // either activity id or activity type must be provided + oneof activity { + // Only activity with this ID will be updated. + string id = 6; + // Update all running activities of this type. + string type = 7; + } } message UpdateActivityOptionsResponse {