如何使用Python脚本从Deadline获取JobID

时间:2018-11-07 14:38:45

标签: python maya sched-deadline

有什么办法可以从截止日期获得工作编号。我正在编写不使用GUI的将Maya作业提交到Deadline的过程的脚本。我需要JobId以便在资源库中创建一个文件夹,以便在提交时保存Maya场景文件。 谢谢

1 个答案:

答案 0 :(得分:0)

如果您通过deadlinecommand.exe提交,则其输出包含所有作业ID。可以用\r\n分隔行,每行包含ID的行都将以JobID=开头。

下面是同时提交两个作业的示例输出:

Deadline Command 9.0 [v9.0.8.4 Release]

Submitting to Repository: \\<company server>\repo

Submission Contains No Auxiliary Files.

Result=Success
JobID=5beebe64afcefe068846e319

The job was submitted successfully, but there were some warnings:
- Invalid characters removed from "LimitGroups" value.


Deadline Command 9.0 [v9.0.8.4 Release]

Submitting to Repository: \\<company server>\repo

Submission Contains No Auxiliary Files.

Result=Success
JobID=5beebe65afcefe068846e31c

The job was submitted successfully, but there were some warnings:
- Invalid characters removed from "LimitGroups" value.
相关问题