i did everything and i have problem with this:
job['todo'] = 25
when i start job from python it set it in qube as 100%(1/1), and in .xja file there is todo tag 0 , and it should be 25 , i think it is error because when i resubmit job from qube it start normal 0/25 and rendering normal. please help !
job = {}
job['todo'] = 25
job['retrywork'] = 10
job['name'] = name
job['cpus'] = cpus
job['user'] = user
job['priority'] = 9999
job['reservations'] = 'host.processors=1'
job['prototype'] = 'cmdrange'
job['package'] = {
'mayaExe' : '/Applications/Autodesk/maya2013/Maya.app/Contents/bin/Render',
'cmdline' : '. "/Applications/Autodesk/maya2013/Maya.app/Contents/bin/MayaENV.sh" && "/Applications/Autodesk/maya2013/Maya.app/Contents/bin/Render" -s QB_FRAME_START -e QB_FRAME_END -b QB_FRAME_STEP -of "jpg" -rd "/Users/Shared/Autodesk/maya/2013/scene" -fnc name.#.ext -renderer "mr" "/Users/Shared/Autodesk/maya/2013/scene/test.ma"',
'scenefile' : '/Users/Shared/Autodesk/maya/2013/scene/test.ma',
'mayaEnvCommand' : '"/Applications/Autodesk/maya2013/Maya.app/Contents/bin/MayaENV.sh" &&',
'simpleCmdType' : 'Maya BatchRender (mr)',
'-of' : 'jpg',
'frameCount' : '25',
'range' : '1-25',
'-render' : '/Users/Shared/Autodesk/maya/2013/scene/test.ma',
'-rd' : '/Users/Shared/Autodesk/maya/2013/scene',
'-fnc' : 'name.#.ext',
'shell' : '/bin/sh',
'-renderer' : 'mr',
}
listOfJobsToSubmit = []
listOfJobsToSubmit.append(job)
listOfSubmittedJobs = qb.submit(listOfJobsToSubmit)
for job in listOfSubmittedJobs:
print job['id']