JobStatus Variable

trueter (21 posts)
August 11, 2014 10:36 AM
Accepted Answer

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

 

Bill Staff (601 posts)
August 12, 2014 07:41 AM
Accepted Answer

The database won't be updated until the job finishes (which includes all Responses being executed).

The variable may not be getting set correctly before the script is run. What version of adTempus are you using?

trueter (21 posts)
August 12, 2014 07:45 AM
Accepted Answer

Hi Bill,

My version numbers are below:

Product Version: 3.0.8.1Console Version: 3.0.0.1057Client Components Version: adtempusdll: 3.0.8.4237, product: unknownServer Version: adtempusdll: 3.0.8.4241, adtempussrv: 3.0.8.3578, product: 3.00.0801

 

Thanks,

Tim

 

Bill Staff (601 posts)
August 12, 2014 01:28 PM
Accepted Answer
I have confirmed that both 3.x and 4.x are not setting that variable before Script Actions run. Please open a support case and we'll get a fix for you.
trueter (21 posts)
August 14, 2014 02:12 PM
Accepted Answer
Thanks Bill, I'll open a case.

Replies are disabled for this topic.