Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky TestWorkflowTaskRedirectInRetryFirstTask (#6269)
## What changed? <!-- Describe what has changed in this PR --> Do not update assigned build ID after AddWorkflowTask if the wft is already started. ## Why? <!-- Tell your future self why have you made these changes --> This addresses an edge case in which the first wft of the workflow is started (but not completed) and there happens to be another wft in the transfer queue for the same execution which gets backlogged in matching. When matching backlogs that task, it returned the assigned build ID and history updates the MS build ID overriding the update made by the task that was started. This should not be allowed. ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> Existing tests. ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> None. ## Documentation <!-- Have you made sure this change doesn't falsify anything currently stated in `docs/`? If significant new behavior is added, have you described that in `docs/`? --> None. ## Is hotfix candidate? <!-- Is this PR a hotfix candidate or does it require a notification to be sent to the broader community? (Yes/No) --> No.
- Loading branch information