Table of Contents

Struct ScheduleJobOptions

Namespace
Quartz
Assembly
Quartz.dll

How jobs and their triggers are stored when they are scheduled together.

public readonly record struct ScheduleJobOptions : IEquatable<ScheduleJobOptions>
Implements
Inherited Members

Remarks

Defaults are the conservative ones: nothing is replaced. So default — which is what omitting the argument gives — is "store them, replace nothing", and there is no third state between "not given" and "all defaults".

This is deliberately not AddJobOptions. That one also carries StoreNonDurableWhileAwaitingScheduling, which has no meaning here: a trigger is always supplied, so the job is never awaiting scheduling. Its Replace is about the job alone, where this one covers the job and its triggers together.

Properties

Replace

Whether already stored jobs and triggers with the same keys are over-written. When false, scheduling a job or trigger whose key already exists throws ObjectAlreadyExistsException.

public bool Replace { get; init; }

Property Value

bool

Replacing

Over-write already stored jobs and triggers with the same keys. The name for new ScheduleJobOptions { Replace = true }, which is what nearly every call that passes these options at all is saying.

public static ScheduleJobOptions Replacing { get; }

Property Value

ScheduleJobOptions

See Also