Skip to content

Feature/forceparallelactions - #57

Merged
Travis Jensen (TravisOnGit) merged 2 commits into
masterfrom
feature/forceparallelactions
Jan 10, 2024
Merged

Travis Jensen (TravisOnGit) merged 2 commits into
masterfrom
feature/forceparallelactions

Conversation

@TravisOnGit

Copy link
Copy Markdown
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.

@zhengmu zhengmu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:shipit:

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