Table of Contents

Struct TriggerExecutionState

Namespace
Quartz.Impl.AdoJobStore
Assembly
Quartz.dll

A trigger's stored state together with whether it currently has an execution in flight.

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

Remarks

The two facts live in different tables — the state in TRIGGERS, the execution in FIRED_TRIGGERS — and are read together so that reporting a trigger's state stays a single round trip.

Constructors

TriggerExecutionState(StoredTriggerState, bool)

public TriggerExecutionState(StoredTriggerState state, bool isExecuting)

Parameters

state StoredTriggerState

The stored state. Pass Deleted when no such trigger exists, or use NotFound.

isExecuting bool

Whether a FIRED_TRIGGERS row for the trigger is in the executing state.

Properties

IsExecuting

Whether a FIRED_TRIGGERS row for the trigger is in the executing state.

public bool IsExecuting { get; }

Property Value

bool

NotFound

The result for a trigger that does not exist.

public static TriggerExecutionState NotFound { get; }

Property Value

TriggerExecutionState

State

The stored state, or Deleted when no such trigger exists.

public StoredTriggerState State { get; }

Property Value

StoredTriggerState