Skip to content

Commit 1b84a0e

Browse files
committed
add reset flag to another response (by ID)
1 parent dec9a5e commit 1b84a0e

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

openapi/openapiv2.json

+4
Original file line numberDiff line numberDiff line change
@@ -12194,6 +12194,10 @@
1219412194
"activityPaused": {
1219512195
"type": "boolean",
1219612196
"description": "Will be set to true if the activity is paused."
12197+
},
12198+
"activityReset": {
12199+
"type": "boolean",
12200+
"description": "Will be set to true if the activity was reset.\nApplies only to the current run."
1219712201
}
1219812202
}
1219912203
},

openapi/openapiv3.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -9240,6 +9240,11 @@ components:
92409240
activityPaused:
92419241
type: boolean
92429242
description: Will be set to true if the activity is paused.
9243+
activityReset:
9244+
type: boolean
9245+
description: |-
9246+
Will be set to true if the activity was reset.
9247+
Applies only to the current run.
92439248
RecordActivityTaskHeartbeatRequest:
92449249
type: object
92459250
properties:

temporal/api/workflowservice/v1/request_response.proto

+11-7
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,10 @@ message RecordActivityTaskHeartbeatByIdResponse {
554554

555555
// Will be set to true if the activity is paused.
556556
bool activity_paused = 2;
557+
558+
// Will be set to true if the activity was reset.
559+
// Applies only to the current run.
560+
bool activity_reset = 3;
557561
}
558562

559563
message RespondActivityTaskCompletedRequest {
@@ -1835,13 +1839,13 @@ message UpdateActivityOptionsRequest {
18351839
// Controls which fields from `activity_options` will be applied
18361840
google.protobuf.FieldMask update_mask = 5;
18371841

1838-
// either activity id or activity type must be provided
1839-
oneof activity {
1840-
// Only activity with this ID will be updated.
1841-
string id = 6;
1842-
// Update all running activities of this type.
1843-
string type = 7;
1844-
}
1842+
// either activity id or activity type must be provided
1843+
oneof activity {
1844+
// Only activity with this ID will be updated.
1845+
string id = 6;
1846+
// Update all running activities of this type.
1847+
string type = 7;
1848+
}
18451849
}
18461850

18471851
message UpdateActivityOptionsResponse {

0 commit comments

Comments
 (0)