Table of Contents

Enum SchedulerInstruction

Namespace
Quartz
Assembly
Quartz.dll

Instructs Scheduler what to do with a trigger and job.

public enum SchedulerInstruction

Fields

DeleteTrigger = 3

Instructs the IScheduler that the ITrigger wants itself deleted.

NoInstruction = 0

Instructs the IScheduler that the ITrigger has no further instructions.

ReExecuteJob = 1

Instructs the IScheduler that the ITrigger wants the IJobDetail to re-Execute immediately. If not in a 'RECOVERING' or 'FAILED_OVER' situation, the execution context will be re-used (giving the IJob the ability to 'see' anything placed in the context by its last execution).

RetryTrigger = 7

Instructs the IScheduler that the ITrigger has scheduled a retry of the occurrence that just failed, and that the job store should store the retry instant and the attempt count it now carries.

A retry needs an instruction of its own because NoInstruction means the opposite: neither store writes the trigger at completion, since the regular next fire time was already written when the trigger fired. A retry moves that time, so it has to be said.

The trigger is left waiting, not in error — a failed occurrence with attempts left is not a broken trigger. It is decided by TriggerBase.ExecutionComplete from the trigger's RetryPolicy, and never returned by a trigger that has none.

SetAllJobTriggersComplete = 4

Instructs the IScheduler that all ITrigger s referencing the same IJobDetail as this one should be put in the Complete state.

SetAllJobTriggersError = 5

Instructs the IScheduler that all ITrigger s referencing the same IJobDetail as this one should be put in the Error state.

SetTriggerComplete = 2

Instructs the IScheduler that the ITrigger should be put in the Complete state.

SetTriggerError = 6

Instructs the IScheduler that the ITrigger should be put in the Error state.