0

We are using NServiceBus 6.4, and we've already disabled retries by setting the delayed and immediate to 0. However, when an exception is caught, are retry is still triggered. How can we completely disable retry even when there's an exception?

            config.DisableFeature<TimeoutManager>();
            recoverability.Delayed(delayed => { delayed.NumberOfRetries(0); });
            recoverability.Immediate(immediate => { immediate.NumberOfRetries(0); });
Bryan
  • 53
  • 3

1 Answers1

1

Documentation on disabling retries can be found here:

It's exactly what you did. So it should not work anymore.

Dennis van der Stelt
  • 2,203
  • 16
  • 22
  • if immediate retry is turned off does this affect delayed retry? – Kixoka Jul 13 '20 at 17:38
  • 1
    You turn off immediate retries by setting the number of retries to 0. It does exactly that. The result is that it goes into delayed retries immediately. Except if you turn those off as well, then the result is that error messages go into the error queue immediately. – Dennis van der Stelt Jul 13 '20 at 21:15