Skip to content

Commit

Permalink
Handle branch token update with long poll API
Browse files Browse the repository at this point in the history
  • Loading branch information
yux0 committed Oct 7, 2023
1 parent d54f4d8 commit 84e68ce
Show file tree
Hide file tree
Showing 14 changed files with 902 additions and 618 deletions.
1,153 changes: 644 additions & 509 deletions api/historyservice/v1/request_response.pb.go

Large diffs are not rendered by default.

183 changes: 126 additions & 57 deletions api/token/v1/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -80,6 +80,7 @@ message GetMutableStateRequest {
temporal.api.common.v1.WorkflowExecution execution = 2;
int64 expected_next_event_id = 3;
bytes current_branch_token = 4;
temporal.server.api.history.v1.VersionHistoryItem version_history_item = 5;
}

message GetMutableStateResponse {
Expand Down Expand Up @@ -115,6 +116,7 @@ message PollMutableStateRequest {
temporal.api.common.v1.WorkflowExecution execution = 2;
int64 expected_next_event_id = 3;
bytes current_branch_token = 4;
temporal.server.api.history.v1.VersionHistoryItem version_history_item = 5;
}

message PollMutableStateResponse {
Expand Down
1 change: 1 addition & 0 deletions proto/internal/temporal/server/api/token/v1/message.proto
Expand Up @@ -38,6 +38,7 @@ message HistoryContinuation {
temporal.server.api.history.v1.TransientWorkflowTaskInfo transient_workflow_task = 7;
bytes branch_token = 8;
reserved 9;
temporal.server.api.history.v1.VersionHistoryItem version_history_item = 10;
}

message RawHistoryContinuation{
Expand Down

0 comments on commit 84e68ce

Please sign in to comment.