Skip to content

Commit

Permalink
Merge pull request #1074 from ynput/enhancement/avoid-knowledge-about…
Browse files Browse the repository at this point in the history
…-render-job-id

Chore: Avoid knowledge about render job id in metadata file
  • Loading branch information
iLLiCiTiT authored Jan 16, 2025
2 parents 9b899eb + e074c00 commit 7d06cc0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/ayon_core/plugins/publish/collect_rendered_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def _process_path(self, data, anatomy):

# now we can just add instances from json file and we are done
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(
instance_data.get("productName")))
instance = self._context.create_instance(
Expand All @@ -105,7 +104,11 @@ def _process_path(self, data, anatomy):
instance.data.update(instance_data)

# 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(
"stagingDir_persistent", False
)
Expand Down

0 comments on commit 7d06cc0

Please sign in to comment.