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

Avoid cancellation exception on task completion #1688

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

glopesdev
Copy link
Member

@glopesdev glopesdev commented Feb 24, 2024

This PR updates the implementation of RunPackageOperationAsync in the console bootstrapper class to avoid explicit scheduling of exception continuations. Instead, a standard try-catch block on top of the async-await pattern is used to ensure task completion in case of successful termination.

Fixes #1687

@glopesdev glopesdev added the fix Pull request that fixes an issue label Feb 24, 2024
@glopesdev glopesdev merged commit 4a729f3 into bonsai-rx:main Feb 24, 2024
3 checks passed
@glopesdev glopesdev deleted the issue-1687 branch February 24, 2024 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bootstrapper returns error code when running in console mode
1 participant