AWS Thinkbox Discussion Forums

deadlinecommand.exe GetJobTasks

Hey guys, I’m trying to make a looping script that does some health checks outside of the Deadline GUI. My understanding is that the API doesn’t work outside of the GUI, so I was using deadlinecommand.exe, however I’ve just hit a roadblock.

In a previous thread, I was explaining that I wanted to get the current task time of a task in progress, but I had to subtract the repository time in order to get the correct result. Now using deadlinecommand.exe I get great returns from completed tasks, but a task in progress seems to break some of the output for the GetJobTasks.

Here is an example of some values that are returned by a task in progress:

RenderStartTime=Jan 01/01 00:00:00
NormalizedRenderTime=10675199.02:48:05.4775807
RenderTime=10675199.02:48:05.4775807
TaskTime=10675199.02:48:05.4775807
TaskStartTime=Aug 14/14 16:31:44

And here is what gets returned from a completed task, which is much easier for me to use.

RenderStartTime=Aug 13/14 16:08:46
NormalizedRenderTime=00:01:31.3170000
RenderTime=00:01:31.3170000
TaskTime=00:16:56.1370000
TaskStartTime=Aug 13/14 15:53:21

So, I’m just wondering what I’m missing in order to get the task time for jobs currently rendering. Previously with the API I was told I could get RepositoryDateTime, but I do not see any features for that in deadlinecommand.exe

RepositoryUtils.GetRepositoryDateTime() should work from scripts being run by deadlinecommand, and you would just have to subtract TaskStartTime from it to get the rendering time.

If that’s not working, can you post some sample code so we can take a look?

Thanks!
Ryan

Privacy | Site terms | Cookie preferences