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

Possible issue with exceptions in an async business rule #4437

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

keithdv
Copy link

@keithdv keithdv commented Jan 10, 2025

Hello,

Is there the possibility of "lost" exceptions with async business rules? I've made the changes below and the unit tests still pass. The 'catch' at line 1124 is skipped for async Rule.Execute since the task is not awaited. Should the exception be hung on to and throw if/when they await the rules? Should there be context.AddErrorResult with the exception message?

Thanks!
Keith

@rockfordlhotka
Copy link
Member

Thank you for the ideas @keithdv. Unfortunately the PR doesn't build, which is a blocker for evaluation.

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.

2 participants