DeadlineCommand.exe and dependancys

I am currently create a script that when you submit your 3dsmax job it creates another job that once its finished it then converts it to another format (using a qt template).

I have got to the point that when you submit the job both the render (max image sequence) and the qt conversion of this sequence are queued (qt suspended). I would like to add a dependency to this job so that it will wait for the sequence to be rendered and then resume to convert it. However the dependency requires the jobid which isn’t created until it is in the queue so I can’t create the dependency at the same time as the job sequence. Is there a way to submit a job while at the same time setting it’s job id so that I can then use that id to set the dependency or create the dependency based on the name of this job or other field that I know or have set on submission.

Any ideas?

Phil

I had the same problem. Here’s my thread that has the answer: http://forums.thinkboxsoftware.com/viewtopic.php?f=11&t=10391
To summarize, use deadlinecommand.exe -SubmitMultipleJobs -dependent -job first.job first.info first.max -job seconds.job second.info seconds.max
You just add as many as you need.
If that doesn’t allow enough control. You can parse the return message. Where it says “Result=Success” and “JobID=xxxxxxxxxxx”. Split those lines at the equals sign then take the right side as the value.

That’s exactly what I was looking for :slight_smile: thanks.

Great to see an answer was found!