I am trying to get the status of a job from inside a script that is called as a response to a job ending.
If I query the "JobStatus" job variable, this always gives me a blank string:
adTempus.JobVariables["JobStatus"]
If I try to query the job's status directly from the executionhistoryitem table, the status is always "Running" (instead of Succeeded or Failed).
Is there a way I can get the job's status from inside of a script run as a response to the job finishing?
Thanks,
Tim