Skip to content

Commit

Permalink
Add history size and continue-as-new suggestion (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnr authored May 21, 2022
1 parent 6b356d6 commit 3e4ba23
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions temporal/api/history/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ message WorkflowTaskStartedEventAttributes {
string identity = 2;
// TODO: ? Appears unused?
string request_id = 3;
// True if this workflow should continue-as-new soon because its history size (in
// either event count or bytes) is getting large.
bool suggest_continue_as_new = 4;
// Total history size in bytes, which the workflow might use to decide when to
// continue-as-new regardless of the suggestion. Note that history event count is
// just the event id of this event, so we don't include it explicitly here.
int64 history_size_bytes = 5;
}

message WorkflowTaskCompletedEventAttributes {
Expand Down

0 comments on commit 3e4ba23

Please sign in to comment.