Table of Contents

Class TriggerStateResolver

Namespace
Quartz.Extensibility
Assembly
Quartz.dll

The single definition of how a stored trigger state plus "is it executing" becomes the TriggerState callers see. Every job store resolves through this — a custom IJobStore included — so the stores cannot report different states for the same situation.

public static class TriggerStateResolver
Inheritance
TriggerStateResolver
Inherited Members

Methods

Resolve(StoredTriggerState, bool)

Resolves the reported state, applying the precedence None > Error > Paused > Executing > Blocked > Complete > Normal.

public static TriggerState Resolve(StoredTriggerState stored, bool isExecuting)

Parameters

stored StoredTriggerState

The trigger's stored state. Deleted reports None, the same answer a missing trigger gives.

isExecuting bool

Whether at least one execution started by the trigger is still running.

Returns

TriggerState

Remarks

Paused and error outrank executing because they are the facts an operator has to act on, and both remain true while a previously started execution finishes. Executing outranks blocked so that the trigger which actually started the running job stays distinguishable from the siblings that are merely gated behind it.