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
Sast/remove unobserved exception polly #575
base: main
Are you sure you want to change the base?
Conversation
return await timeoutPolicy.ExecuteAsync(action, ct).ConfigureAwait(false); | ||
} | ||
else | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nathanwoctopusdeploy would something like this work? or does the timeoutPolicy need to see an exception? The retry policy should still see an exception.
This pull request has been linked to Shortcut Story #58194: Bug: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. |
e237729
to
ed6cddb
Compare
@nathanwoctopusdeploy This works, but I am not sure if it is too nasty. I will leave it with you to decide if it ought to go in or not. |
Background
[SC-58194]
Fixes a unobserved exception caused by polly walking away from requests.
How to review this PR
Quality ✔️
Pre-requisites