use handles correctly in deadline job submitter

This commit is contained in:
Milan Kolar 2020-03-13 23:52:55 +01:00
parent 2017d2315a
commit bbf03cc119

View file

@ -355,8 +355,6 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
aov) aov)
staging = os.path.dirname(list(cols[0])[0]) staging = os.path.dirname(list(cols[0])[0])
start = int(instance_data.get("frameStart"))
end = int(instance_data.get("frameEnd"))
self.log.info("Creating data for: {}".format(subset_name)) self.log.info("Creating data for: {}".format(subset_name))
@ -377,8 +375,8 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
"name": ext, "name": ext,
"ext": ext, "ext": ext,
"files": [os.path.basename(f) for f in list(cols[0])], "files": [os.path.basename(f) for f in list(cols[0])],
"frameStart": start, "frameStart": int(instance_data.get("frameStartHandle")),
"frameEnd": end, "frameEnd": int(instance_data.get("frameEndHandle")),
# If expectedFile are absolute, we need only filenames # If expectedFile are absolute, we need only filenames
"stagingDir": staging, "stagingDir": staging,
"anatomy_template": "render", "anatomy_template": "render",
@ -413,8 +411,6 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
""" """
representations = [] representations = []
start = int(instance.get("frameStart"))
end = int(instance.get("frameEnd"))
cols, rem = clique.assemble(exp_files) cols, rem = clique.assemble(exp_files)
bake_render_path = instance.get("bakeRenderPath") bake_render_path = instance.get("bakeRenderPath")
@ -442,8 +438,8 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
"name": ext, "name": ext,
"ext": ext, "ext": ext,
"files": [os.path.basename(f) for f in list(c)], "files": [os.path.basename(f) for f in list(c)],
"frameStart": start, "frameStart": int(instance.get("frameStartHandle")),
"frameEnd": end, "frameEnd": int(instance.get("frameEndHandle")),
# If expectedFile are absolute, we need only filenames # If expectedFile are absolute, we need only filenames
"stagingDir": os.path.dirname(list(c)[0]), "stagingDir": os.path.dirname(list(c)[0]),
"anatomy_template": "render", "anatomy_template": "render",
@ -577,6 +573,8 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
"frameEnd": end, "frameEnd": end,
"handleStart": handle_start, "handleStart": handle_start,
"handleEnd": handle_end, "handleEnd": handle_end,
"frameStartHandle": start - handle_start,
"frameEndHandle": end + handle_end,
"fps": fps, "fps": fps,
"source": source, "source": source,
"extendFrames": data.get("extendFrames"), "extendFrames": data.get("extendFrames"),