deadline 多任务创建


deadline webservice路径:

C:\Program files\Thinkbox\Deadline10\bin\deadlinewebservice.exe

sys.path.append(r'\\192.168.2.23\Deadline\DeadlineRepository10\api\python')
import Deadline.DeadlineConnect as Connect
# os.getenv('REPO') 获取开启weebservise服务的电脑ip或电脑名
dealineNode = Connect.DeadlineCon(os.getenv('REPO'), 8082)

jobInfo = {
'UserName': getpass.getuser(),
'Plugin': 'CommandLine',
'OverrideTaskExtraInfoNames': ' False',
'Priority': '100',
'BatchName': '{}_Abc_Export'.format(shot_path.split('\\')[-1].split('.')[0]),
'Name': name}
pluginInfo = {
'Executable': r"I:\ple_log\deadline_cache_log\{}.bat".format(name)
}
print('start go deadline')
newJob = dealineNode.Jobs.SubmitJob(jobInfo, pluginInfo)

查找端口

image-20210822124128166

image-20210822124140482

image-20210822124154467


评论
  目录