Skip to content

HeartBeatConfiguration

blehnen edited this page Nov 10, 2026 · 6 revisions

Heartbeat Configuration

The heartbeat configuration controls how often heartbeats are issued and how long it takes before a record is considered outside the heartbeat window.

The update time controls how often the heartbeat is updated.

queue.Configuration.HeartBeat.UpdateTime = "sec(*%10)"; //set a heartbeat every 10 seconds

When the heartbeat is outside this window, the record is considered for re-queuing to another worker.

queue.Configuration.HeartBeat.Time = TimeSpan.FromSeconds(35); //records with no heartbeat after 35 seconds are considered dead

How often the queue checks for records that need to be re-queued because they are outside the time window.

queue.Configuration.HeartBeat.MonitorTime = TimeSpan.FromSeconds(15); //check for dead records every 15 seconds

How many threads to use to update heartbeats. If you de-queue many records at once and you use a short heartbeat window, you may need more than 1 thread.

queue.Configuration.HeartBeat.ThreadPoolConfiguration.ThreadsMax = 1;

Clone this wiki locally