Skip to content

RunReconciliationOptions

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Orphaned-run reconciliation settings.

public sealed class RunReconciliationOptions

objectRunReconciliationOptions

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Read from the AgentPrism:RunReconciliation configuration section. See AgentPrismServiceCollectionExtensions.AddAgentPrism.

public RunReconciliationOptions()

The configuration section name.

public const string SectionName = "AgentPrism:RunReconciliation"

string

Whether reconciliation is on. Defaults to false: in a single-instance development setup, no one expects a background writer, and no query goes to the lease table.

public bool Enabled { get; set; }

bool

The interval at which a running run writes its “I’m still here” signal.

public TimeSpan HeartbeatInterval { get; set; }

TimeSpan

The maximum number of rows to close in one pass.

public int MaxRunsPerScan { get; set; }

int

A Running row that has not signalled for longer than this is considered orphaned.

public TimeSpan OrphanThreshold { get; set; }

TimeSpan

Defaults to ten times RunReconciliationOptions.HeartbeatInterval: a single GC pause or a brief database interruption must not declare a job running dead.

The wait between reconciliation passes.

public TimeSpan ScanInterval { get; set; }

TimeSpan