AgentPrismSchedulingOptions
AgentPrism.Abstractions.dllBatch and scheduled run settings.
public sealed class AgentPrismSchedulingOptionsInheritance
Section titled “Inheritance”object ← AgentPrismSchedulingOptions
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:Scheduling configuration section. See
AgentPrismServiceCollectionExtensions.UseScheduling.
Constructors
Section titled “Constructors”AgentPrismSchedulingOptions()
Section titled “ AgentPrismSchedulingOptions()”public AgentPrismSchedulingOptions()Fields
Section titled “Fields”SectionName
Section titled “ SectionName”The configuration section name.
public const string SectionName = "AgentPrism:Scheduling"Field Value
Section titled “Field Value”Properties
Section titled “Properties”Enabled
Section titled “ Enabled”Whether the scheduling subsystem is enabled.
public bool Enabled { get; set; }Property Value
Section titled “Property Value”LeaseDuration
Section titled “ LeaseDuration”A job’s lease duration. If the worker does not finish within this time, the job may be re-leased.
public TimeSpan LeaseDuration { get; set; }Property Value
Section titled “Property Value”MaxAttempts
Section titled “ MaxAttempts”The maximum number of attempts a job may make before becoming JobStatus.Failed.
public int MaxAttempts { get; set; }Property Value
Section titled “Property Value”MaxConcurrentJobs
Section titled “ MaxConcurrentJobs”The maximum number of jobs that may run concurrently in this process.
public int MaxConcurrentJobs { get; set; }Property Value
Section titled “Property Value”MaxItemsPerJob
Section titled “ MaxItemsPerJob”The maximum number of items allowed in a single job.
public int MaxItemsPerJob { get; set; }Property Value
Section titled “Property Value”PollInterval
Section titled “ PollInterval”How often new jobs and due schedules are looked for.
public TimeSpan PollInterval { get; set; }Property Value
Section titled “Property Value”RunWorker
Section titled “ RunWorker”Whether the background worker runs in this process. If set to false, the queue and schedule stores keep working, but no job is leased or executed in this process — distribution is left to another process.
public bool RunWorker { get; set; }