You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for the opposite behavior of the AutomaticRetryAttribute.OnlyOn - Retry on all exceptions except the specified ones.
Is there an elegant way to achieve this? At the moment, I've kinda solved it with IServerExceptionFilter by setting filterContext.ExceptionHandled = true when the desired exception is detected. But this has a flaw: jobs are marked as successful, not failed.
If I get guidance, I can spend time on this and raise a PR. Maybe introduce ExceptOn in AutomaticRetryAttribute that would be used together with OnlyOn to determine whether retry should happen.
The text was updated successfully, but these errors were encountered:
Hello,
I'm looking for the opposite behavior of the
AutomaticRetryAttribute.OnlyOn
- Retry on all exceptions except the specified ones.Is there an elegant way to achieve this? At the moment, I've kinda solved it with
IServerExceptionFilter
by settingfilterContext.ExceptionHandled = true
when the desired exception is detected. But this has a flaw: jobs are marked as successful, not failed.If I get guidance, I can spend time on this and raise a PR. Maybe introduce
ExceptOn
inAutomaticRetryAttribute
that would be used together withOnlyOn
to determine whether retry should happen.The text was updated successfully, but these errors were encountered: