Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Reset] Add AllowChildReconnect flag in task generator (#7157)
## What changed? Added a `StartChildExecutionTask.AllowChildReconnect` bool flag to mark the task at the time of reset. This flag is used to determine if we want to attempt to reconnect the child or not (instead of just checking if the workflow was reset) ## Why? In `transferQueueActiveTaskExecutor.processStartChildExecution()` I was checking the condition `mutableState.IsResetRun()` before attempting to reconnect to children. The problem is `mutableState.IsResetRun()` is true for the rest of the lifetime of the workflow. So if the workflow starts another instance of the same child somewhere down the line, we will reconnect to the previously completed instance of the child. So added an explicit flag in StartChildExecutionTask to determine if we should reconnect to the child or start a new instance. ## How did you test it? Existing unit test + manual testing. ## Potential risks N/A. The feature is gated behind a feature flag. ## Documentation N/A ## Is hotfix candidate? No
- Loading branch information