Skip to content

Commit 07c7303

Browse files
Document reset_history_event_id (#419)
Document reset_history_event_id
1 parent 3a31163 commit 07c7303

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

openapi/openapiv2.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7166,7 +7166,8 @@
71667166
},
71677167
"resetHistoryEventId": {
71687168
"type": "string",
7169-
"format": "int64"
7169+
"format": "int64",
7170+
"description": "If non zero, indicates the server has discarded the workflow task that was being responded to.\nWill be the event ID of the last workflow task started event in the history before the new workflow task.\nServer is only expected to discard a workflow task if it could not have modified the workflow state."
71707171
}
71717172
}
71727173
},

temporal/api/workflowservice/v1/request_response.proto

+3-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@ message RespondWorkflowTaskCompletedResponse {
357357
PollWorkflowTaskQueueResponse workflow_task = 1;
358358
// See `ScheduleActivityTaskCommandAttributes::request_start`
359359
repeated PollActivityTaskQueueResponse activity_tasks = 2;
360-
360+
// If non zero, indicates the server has discarded the workflow task that was being responded to.
361+
// Will be the event ID of the last workflow task started event in the history before the new workflow task.
362+
// Server is only expected to discard a workflow task if it could not have modified the workflow state.
361363
int64 reset_history_event_id = 3;
362364
}
363365

0 commit comments

Comments
 (0)