-
Notifications
You must be signed in to change notification settings - Fork 14
FatalExceptionDelayConfiguration
Brian Lehnen edited this page Nov 1, 2015
·
2 revisions
When a worker encounters a fatal exception, it can be configured to backoff and delay before issuing another dequeue command.
This is controlled by a collection of timestamps on the transport configuration. Each time a fatal exception is encountered, the worker will increment a count, and then pause for the length of time indicated by the time span.
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