ADSJobStatus enumeration

The ADSJobPriority enumeration encapsulates the possible execution statuses for a job.

 

Enumeration

Value

Description

ADS_STATUS_NONE

0

The job has never been run, or has been modified since it was last run.

ADS_STATUS_RUNNING

1

The job is currently running.

ADS_STATUS_UNKNOWN

2

The job's status is unknown (the service was stopped after the job last started but before it finished).

ADS_STATUS_FAILED

3

The Scheduler was unable to start the job.

ADS_STATUS_ERROR

4

The job completed with errors.

ADS_STATUS_SUCCESS

5

The job completed successfully.

ADS_STATUS_RESCHEDULED

6

The job completed with errors and has been rescheduled for another attempt.

ADS_STATUS_KILLED

7

The job was terminated by the Scheduler because it exceeded its allowed run time. The process was terminated.

ADS_STATUS_CLOSED

8

The job was terminated by the Scheduler because it exceeded its allowed run time. The Scheduler forced the program to terminate gracefully.

ADS_STATUS_MISSED

10

The job's last scheduled execution time was missed because the Scheduler was not running.

ADS_STATUS_CONDITION_FAILED

11

The job was not started because a condition was not met.

ADS_STATUS_WAITING_FOR_CONDITION

12

The Scheduler is waiting for the job's execution condition to be satisfied.