Skip to content
Tracon

TraconAsyncRunOptions

Namespace Tracon · Assembly Tracon.Core.dll

Defines queued, durable run options.

public sealed class TraconAsyncRunOptions

objectTraconAsyncRunOptions

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

Read from the Tracon:AsyncRun configuration section.

Enabled is the default, as with the Idempotency-Key. A request without Prefer: respond-async has no additional cost or behavioral change; it does not issue a query. If this were disabled by default, a client that sent the header would believe the run was queued when it was not, which would be the real silent surprise.

public TraconAsyncRunOptions()

Gets the configuration section name.

public const string SectionName = "Tracon:AsyncRun"

string

Gets or sets whether Prefer: respond-async is recognized. When disabled, a request that carries the header receives 501 rather than silently falling back to synchronous execution. Defaults to true.

public bool Enabled { get; set; }

bool

Gets or sets the maximum attempt count for a queued run.

public int MaxAttempts { get; set; }

int

Defaults to 1 to prevent a side-effecting tool from running twice when a lease expires and the job is reclaimed. Raising it requires idempotent tools. “Durable” means a job does not disappear silently, not that it can never be lost.