Table of Contents

TJobRunState Record

A snapshot of what a TJobWorker has been doing.

Remarks

Times are local times; a zero value means "never". A run that gave up because the worker was stopping counts neither as a run nor as a failure.

Syntax

Unit: Sparkle.Host.Jobs

TJobRunState = record;

Fields

Name Description
ConsecutiveFailures Number of runs that failed since the last successful one.
FailureCount Number of runs that failed.
IsExecuting Whether a run is in progress.
LastDurationMs How long the last run took, in milliseconds.
LastError Why the last run failed, as "exception class: message". Empty when the last run succeeded.
LastFinishedAt When the last run finished.
LastRunSucceeded Whether the last finished run succeeded.
LastStartedAt When the last run started.
LastSucceededAt When a run last finished successfully.
NextRunAt When the next scheduled run is due. Zero while a run is in progress, when the worker only runs on request, or when it is not running.
RunCount Number of runs that finished, successfully or not.