Class JobRunStatus
- Namespace
- Quartz
- Assembly
- Quartz.dll
How one job's runs have gone: its last run, its last success and failure, and its counts.
public sealed record JobRunStatus : IEquatable<JobRunStatus>
- Inheritance
-
JobRunStatus
- Implements
- Inherited Members
Remarks
Kept by the history store beside the rows, from every execution it records, so it survives the rows being trimmed. The counts start when the store first recorded the job.
The Last* run fields describe the execution that fired latest. A run that completes after a
later-fired one is counted but does not replace them.
Constructors
JobRunStatus(string, JobKey, DateTimeOffset, JobRunResult)
How one job's runs have gone: its last run, its last success and failure, and its counts.
public JobRunStatus(string SchedulerName, JobKey Job, DateTimeOffset LastFiredAtUtc, JobRunResult LastResult)
Parameters
SchedulerNamestringThe scheduler the job belongs to.
JobJobKeyThe job.
LastFiredAtUtcDateTimeOffsetWhen the latest-fired recorded run fired.
LastResultJobRunResultWhat that run achieved.
Remarks
Kept by the history store beside the rows, from every execution it records, so it survives the rows being trimmed. The counts start when the store first recorded the job.
The Last* run fields describe the execution that fired latest. A run that completes after a
later-fired one is counted but does not replace them.
Properties
ConsecutiveFailures
How many occurrences in a row have failed for the last time, counted from the latest-fired run back. A success resets it; a cancelled run and a failure the trigger retries leave it alone.
public int ConsecutiveFailures { get; init; }
Property Value
Remarks
Above zero is what Failing selects.
FailureCount
How many occurrences have failed for the last time. A failure the trigger retries is not counted.
public long FailureCount { get; init; }
Property Value
FirstFiredAtUtc
When the earliest-fired recorded run fired.
public DateTimeOffset FirstFiredAtUtc { get; init; }
Property Value
Job
The job.
public JobKey Job { get; init; }
Property Value
LastDuration
How long the latest-fired run took.
public TimeSpan LastDuration { get; init; }
Property Value
LastEntryId
The latest-fired run's EntryId, which GetExecution(string, string, CancellationToken) reads it back by while it is kept.
public string? LastEntryId { get; init; }
Property Value
LastFailedAtUtc
When the latest failed run fired, a failure the trigger retries included. null until one is recorded.
public DateTimeOffset? LastFailedAtUtc { get; init; }
Property Value
LastFailureMessage
The ExceptionMessage of the run at LastFailedAtUtc: the message of what the job threw, or else the run's summary.
public string? LastFailureMessage { get; init; }
Property Value
LastFiredAtUtc
When the latest-fired recorded run fired.
public DateTimeOffset LastFiredAtUtc { get; init; }
Property Value
LastResult
What that run achieved.
public JobRunResult LastResult { get; init; }
Property Value
LastSchedulerInstanceId
The node that ran the latest-fired run.
public string? LastSchedulerInstanceId { get; init; }
Property Value
LastSucceededAtUtc
public DateTimeOffset? LastSucceededAtUtc { get; init; }
Property Value
LastSummary
The latest-fired run's Summary.
public string? LastSummary { get; init; }
Property Value
RunCount
How many runs have been recorded, every result included.
public long RunCount { get; init; }
Property Value
SchedulerName
The scheduler the job belongs to.
public string SchedulerName { get; init; }