I have a scheduled (daily) job that has to be retried in case of exceptions, which is why I decorate it with the [AutomaticRetry] attribute (let’s say with a value of 5). But there are cases when I don’t want the retry to happen (for example, I send a report to an external service and that rejects it with a 400 - meaning the data is bad). There’s no point in retrying (I’m gonna get the same result unless I fix the data first) and the job should not appear successful (because it was not).
How to achieve this?
Thanks,
George