Enum SchedulerInstruction
- Namespace
- Quartz
- Assembly
- Quartz.dll
Instructs Scheduler what to do with a trigger and job.
public enum SchedulerInstruction
Fields
DeleteTrigger = 3Instructs the IScheduler that the ITrigger wants itself deleted.
NoInstruction = 0Instructs the IScheduler that the ITrigger has no further instructions.
ReExecuteJob = 1Instructs 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 = 7Instructs 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.ExecutionCompletefrom the trigger's RetryPolicy, and never returned by a trigger that has none.SetAllJobTriggersComplete = 4Instructs the IScheduler that all ITrigger s referencing the same IJobDetail as this one should be put in the Complete state.
SetAllJobTriggersError = 5Instructs the IScheduler that all ITrigger s referencing the same IJobDetail as this one should be put in the Error state.
SetTriggerComplete = 2Instructs the IScheduler that the ITrigger should be put in the Complete state.
SetTriggerError = 6Instructs the IScheduler that the ITrigger should be put in the Error state.