deadlinecommand throws an error: "could not find submit info

Hi,

I’m trying to batch-submit a ton of jobs for rendering, but, when I call the deadlinecommand with the SubmitDropJob argument and supply (as the Deadline plugins do) the job info file, plugin info file and the file name, I get the "Error: could not find submit info file: SubmitDropJob (Deadline.Submission.DeadlineSubmissionException).

What am I missing?

I copied the steps from the regular Deadline plugins that ship with Deadline (3ds Max submission script, Nuke submission script etc…) and all these submission scripts generate are these two job files which are then passed as arguments to the ClientUtils.ExecuteCommand( arguments ).

The SubmitDropJob only lists these options:

SubmitDropJob Submits a drop job. [-compress] Optional. If specified, the job files will be compressed before submitting the drop job [<Job Files>] The job files

What am I missing, then?

Thanks a lot in advance!

By the way, I got my script working by using different arguments:

deadlinecommand -drop “jobInfoFile” “pluginInfoFile”

this works perfectly fine.

Can you post the exact command you used to get that error with the SubmitDropJob command? Using the -drop option essentially does the same thing, so I’m glad that’s working for now.

Thanks!

  • Ryan

Sure thing, here’s the snippet:

[code]
from System.IO import Directory, Path, File
from System.Diagnostics import Process, ProcessStartInfo

def submitJobFilesToDeadline(dir):

pluginInfoFile = None
jobInfoFile = None
startInfo = ProcessStartInfo()
startInfo.FileName = r"C:\Program Files\Thinkbox\Deadline\bin\deadlinecommand.exe"

for fil in Directory.GetFiles(Path.Combine(dir, r"Data")):
	if "job_info.job" in fil:
		jobInfoFile = fil
	elif "plugin_info.job" in fil:
		pluginInfoFile = fil

if jobInfoFile != None and pluginInfoFile != None:
	# setup the arguments
	startInfo.Arguments = "{0} {1} {2}".format("SubmitDropJob", jobInfoFile, pluginInfoFile)
	# execute the submission
	Process.Start(startInfo)
	print "{0} submitted successfully...".format(dir)
else:
	print "{0} not submitted...".format(dir)[/code]

Thanks! We were able to reproduce and figure out why you were getting that error. This will be fixed in 5.1.

Cheers,

  • Ryan

Ah, ok. :slight_smile: No problem then.