Skip to content

AgentPrismSchedulingOptions

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Batch and scheduled run settings.

public sealed class AgentPrismSchedulingOptions

objectAgentPrismSchedulingOptions

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

Read from the AgentPrism:Scheduling configuration section. See AgentPrismServiceCollectionExtensions.UseScheduling.

public AgentPrismSchedulingOptions()

The configuration section name.

public const string SectionName = "AgentPrism:Scheduling"

string

Whether the scheduling subsystem is enabled.

public bool Enabled { get; set; }

bool

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; }

TimeSpan

The maximum number of attempts a job may make before becoming JobStatus.Failed.

public int MaxAttempts { get; set; }

int

The maximum number of jobs that may run concurrently in this process.

public int MaxConcurrentJobs { get; set; }

int

The maximum number of items allowed in a single job.

public int MaxItemsPerJob { get; set; }

int

How often new jobs and due schedules are looked for.

public TimeSpan PollInterval { get; set; }

TimeSpan

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; }

bool