Skip to content

Commit

Permalink
Add methods to set and get ChildrenInitializedPostResetPoint in Mutab…
Browse files Browse the repository at this point in the history
…leState
  • Loading branch information
gow committed Feb 4, 2025
1 parent e3ddf93 commit 6015fef
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/persistence/v1/executions.pb.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ message WorkflowExecutionInfo {
VersionedTransition last_transition_history_break_point = 101;

// This is a set of child workflows that were initialized after the reset point in the parent workflow.
// The children are identified by the key "workflow_id:workflow_type". When the parent starts to make progress after reset, it uses this data to
// The children are identified by the key "workflow_type:workflow_id". When the parent starts to make progress after reset, it uses this data to
// determine the right start policy to apply to the child.
map<string, bool> children_initialized_post_reset_point = 102;
}
Expand Down
2 changes: 2 additions & 0 deletions service/history/workflow/mutable_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ type (
UpdateResetRunID(runID string)
// IsResetRun returns true if this run is result of a reset operation.
IsResetRun() bool
SetChildrenInitializedPostResetPoint(children map[string]bool)
GetChildrenInitializedPostResetPoint() map[string]bool

CloneToProto() *persistencespb.WorkflowMutableState
RetryActivity(ai *persistencespb.ActivityInfo, failure *failurepb.Failure) (enumspb.RetryState, error)
Expand Down
26 changes: 26 additions & 0 deletions service/history/workflow/mutable_state_mock.go

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

0 comments on commit 6015fef

Please sign in to comment.