Skip to content

Conversation

@gow
Copy link
Contributor

@gow gow commented Jan 31, 2025

What changed?

Added a new field children_initialized_post_reset_point to collect a set of children that need to be restarted after the parent is reset.

Why?

We need to remember the set of children that need to be restarted after resetting a parent. So adding this field which will be populated in workflowResetterImpl (in the followup PR)

How did you test it?

Existing tests. This is just the protochange.

Potential risks

N/A

Documentation

N/A

Is hotfix candidate?

No

@gow gow requested a review from a team as a code owner January 31, 2025 00:30
@gow gow marked this pull request as draft January 31, 2025 00:30
@gow gow force-pushed the cg/reset_before_child_init_1 branch from 57f6bb3 to 9d6e3b3 Compare February 4, 2025 01:02
@gow gow requested a review from yycptt February 4, 2025 01:02
@gow gow marked this pull request as ready for review February 4, 2025 01:02
@gow gow force-pushed the cg/reset_before_child_init_1 branch 3 times, most recently from 6015fef to 2814a46 Compare February 4, 2025 20:14
@gow gow force-pushed the cg/reset_before_child_init_1 branch from 2814a46 to 695190a Compare February 4, 2025 22:39
// 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_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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just calling out that this new field won't be replicated with today's replication stack. So the new feature will only work properly with in single dc setup

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I will be adding this and a few other fields (reset_run) to replication stack.

@gow gow merged commit 8de299c into main Feb 5, 2025
50 checks passed
@gow gow deleted the cg/reset_before_child_init_1 branch February 5, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants