Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/forceparallelactions #57

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

TravisOnGit
Copy link
Member

Ensure ForgeActions run in parallel (when part of the same TreeNode) by immediately yielding back the task in ExecuteActionWithRetry.
This prevents an issue where ForgeActions would not get kicked off in quick succession as expected, but only once the execution path in the ForgeAction performed an await. Issues were faced where ForgeActions would be running synchronously, and only kick off the "parallel action" after the first ForgeAction was fully completed.

Also fixed a flaky UT related to a race when cancelling the tree. Either a TaskCanceledException or OperationCanceledException will be thrown depending which task recognizes the cancelation token first.

Copy link
Collaborator

@zhengmu zhengmu left a comment

Choose a reason for hiding this comment

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

:shipit:

@TravisOnGit TravisOnGit merged commit de29125 into master Jan 10, 2024
2 checks passed
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.

None yet

3 participants