Repository navigation
FatalExceptionDelayConfiguration
blehnen edited this page Nov 10, 2026
·
4 revisions
When a worker encounters a fatal exception, you can configure the worker to back off and delay before it issues another dequeue command.
A collection of time spans on the transport configuration controls this behavior. Each time the worker encounters a fatal exception, it increments a count and then pauses for the length of time that the time span gives.
The configuration has default delays, but you can change them.
queue.Configuration.TransportConfiguration.FatalExceptionDelayBehavior.Clear();
var list = new List<TimeSpan>
{
TimeSpan.FromSeconds(1),
TimeSpan.FromSeconds(1),
TimeSpan.FromSeconds(2),
TimeSpan.FromSeconds(3),
TimeSpan.FromSeconds(5),
TimeSpan.FromSeconds(8)
};
queue.Configuration.TransportConfiguration.FatalExceptionDelayBehavior.Add(list);For any issues please use the GitHub issues