This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The CurrentRunStatus property returns the executing state of a SQL Server Agent job.
The CurrentRunStatus value is interpreted using these values.
The job is waiting on a job step retry attempt.
The job is executing.
The job is idle, awaiting its next scheduled execution.
All executable job steps are complete. Job history logging is in progress.
The job is suspended.
The state cannot be determined.
The job is waiting on the outcome of a step.
The job is blocked, unable to obtain a thread resource.