AWS Thinkbox Discussion Forums

Deadline 6 Beta - format job task times?

Hello,

Quick question regarding the Deadline 6 Beta command-line tool. Are there any options/switches available to format the output for job task times?

i.e. from the command shell:

%> deadlinecommand GetJobTaskTotalTime 512fe02e8b3a09365c637e29
TaskTotalRenderTime=00d 00h 07m 03s

%> deadlinecommand GetJobTaskAverageTime 512fe02e8b3a09365c637e29
TaskAverageRenderTime=00d 00h 00m 16s

%> deadlinecommand GetJobTaskTotalTimeNorm 512fe02e8b3a09365c637e29
TaskTotalNormalizedRenderTime=00d 00h 07m 03s

%> deadlinecommand GetJobTaskAverageTimeNorm 512fe02e8b3a09365c637e29
TaskAverageNormalizedRenderTime=00d 00h 00m 16s

… Instead of having the output auto-formatted as “XXd XXh XXm XXs” for these commands, I’d like to have the time output as a single numeric value in seconds. Is this possible?

Thanks lots!

Parmjit V.
Software Developer

Currently, no. The formats are just the same as they are in the Deadline Monitor.

Is it possible to have code on your end parse these values to determine the duration in seconds?

Cheers,

  • Ryan

Is the command tool just giving back a plain string value as the output? If so, it should be possible to write up something python-y on my end of things to do the conversion manually.

Yup, deadlinecommand is just dumping the value to stdout, so you can launch the process with python and read the stdout back in.

Cheers,

  • Ryan

Sweet. Thanks!

Parmjit

Privacy | Site terms | Cookie preferences