mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Merge pull request #1074 from ynput/enhancement/avoid-knowledge-about-render-job-id
Chore: Avoid knowledge about render job id in metadata file
This commit is contained in:
commit
7d06cc00bd
1 changed files with 6 additions and 3 deletions
|
|
@ -93,8 +93,7 @@ class CollectRenderedFiles(pyblish.api.ContextPlugin):
|
||||||
|
|
||||||
# now we can just add instances from json file and we are done
|
# now we can just add instances from json file and we are done
|
||||||
any_staging_dir_persistent = False
|
any_staging_dir_persistent = False
|
||||||
for instance_data in data.get("instances"):
|
for instance_data in data["instances"]:
|
||||||
|
|
||||||
self.log.debug(" - processing instance for {}".format(
|
self.log.debug(" - processing instance for {}".format(
|
||||||
instance_data.get("productName")))
|
instance_data.get("productName")))
|
||||||
instance = self._context.create_instance(
|
instance = self._context.create_instance(
|
||||||
|
|
@ -105,7 +104,11 @@ class CollectRenderedFiles(pyblish.api.ContextPlugin):
|
||||||
instance.data.update(instance_data)
|
instance.data.update(instance_data)
|
||||||
|
|
||||||
# stash render job id for later validation
|
# stash render job id for later validation
|
||||||
instance.data["render_job_id"] = data.get("job").get("_id")
|
instance.data["publishJobMetadata"] = data
|
||||||
|
# TODO remove 'render_job_id' here and rather use
|
||||||
|
# 'publishJobMetadata' where is needed.
|
||||||
|
# - this is deadline specific
|
||||||
|
instance.data["render_job_id"] = data.get("job", {}).get("_id")
|
||||||
staging_dir_persistent = instance.data.get(
|
staging_dir_persistent = instance.data.get(
|
||||||
"stagingDir_persistent", False
|
"stagingDir_persistent", False
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue