AgentPrismAsyncRunOptions
AgentPrism.Core.dllDefines queued, durable run options.
public sealed class AgentPrismAsyncRunOptionsInheritance
Section titled “Inheritance”object ← AgentPrismAsyncRunOptions
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Read from the AgentPrism: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.
Constructors
Section titled “Constructors”AgentPrismAsyncRunOptions()
Section titled “ AgentPrismAsyncRunOptions()”public AgentPrismAsyncRunOptions()Fields
Section titled “Fields”SectionName
Section titled “ SectionName”Gets the configuration section name.
public const string SectionName = "AgentPrism:AsyncRun"Field Value
Section titled “Field Value”Properties
Section titled “Properties”Enabled
Section titled “ Enabled”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; }Property Value
Section titled “Property Value”MaxAttempts
Section titled “ MaxAttempts”Gets or sets the maximum attempt count for a queued run.
public int MaxAttempts { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”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.