Table of Contents

Interface ISimpleTrigger

Namespace
Quartz
Assembly
Quartz.dll

A ITrigger that is used to fire a IJob at a given moment in time, and optionally repeated at a specified interval.

public interface ISimpleTrigger : ITrigger
Inherited Members

Remarks

This is a read model: to change a trigger's schedule, rebuild it with GetTriggerBuilder() and hand it to RescheduleJob(TriggerKey, ITrigger, CancellationToken).

Properties

MeasureIntervalFromCompletion

Whether the interval is measured from the previous run's completion rather than from its scheduled time: a fixed delay rather than a fixed rate. false — the default — is a fixed rate.

bool MeasureIntervalFromCompletion { get; }

Property Value

bool

Remarks

While a firing runs the trigger is held, on every node, so it never overlaps itself and its OverlapPolicy is never asked. When the firing completes, however it ended, the next fire time becomes the completion time plus RepeatInterval, within the end time and the repeat count. A retry fires at its retry time; the delay follows the last attempt.

A cluster measures from completion only once every node is 4.7 or later: an older node ignores the column and runs the trigger at a fixed rate.

See Also

MisfireInstruction

What the scheduler does when this trigger misses a firing.

SimpleTriggerMisfireInstruction MisfireInstruction { get; }

Property Value

SimpleTriggerMisfireInstruction
See Also

RepeatCount

The number of times the ISimpleTrigger should repeat, after which it will be automatically deleted.

int RepeatCount { get; }

Property Value

int
See Also

RepeatInterval

The time interval at which the ISimpleTrigger repeats.

TimeSpan RepeatInterval { get; }

Property Value

TimeSpan

TimesTriggered

Get the number of times the ISimpleTrigger has already fired.

int TimesTriggered { get; }

Property Value

int

See Also