Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Gaffer tweaks for ayon-gaffer #6254

Closed
wants to merge 1 commit into from

Conversation

sjt-rvx
Copy link
Contributor

@sjt-rvx sjt-rvx commented Mar 26, 2024

Since I have moved all the gaffer stuff into an addon we still need to alter some things in the openpype core (ayon-core in the near future). However this adds also a bit of other things I was hoping to get rid of before this becomes proper. This adds 'explicit_cleanup_paths' to instances which cleanup.py So we can run arbitrary cleanup on the farm. I added this at the time since I couldn't get the actual explicit_cleanup paths work. This also messes with submit_publish_job.py's way of fetching AVALON_ASSET and AVALON_TASK, trying first to get the data from the instance instead of just looking at the context. This is kind of a must for multi-context publishes (publishing into several folders in one go).

The gaffer addon in its roughest form:

https://github.com/RVXStudio/ayon-gaffer

Testing notes:

  1. To try this out you will need the ayon-gaffer addon
  2. and then this PR

…. Althoug this adds 'explicit_cleanup_paths' which I added at the time since I couldn't get the actual explicit_cleanup paths work. This also messes with submit_publish_job.py's way of fetching AVALON_ASSET and AVALON_TASK, trying first to get the data from the instance instead of just looking at the context
]

for key in extra_instance_data:
if key in instance.data.keys():
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

"AVALON_ASSET": instance.context.data["asset"],
"AVALON_TASK": instance.context.data["task"],
"AVALON_ASSET": instance.data['asset'] or instance.context.data["asset"],
"AVALON_TASK": instance.data['task'] or instance.context.data["task"],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (82 > 79 characters)

@@ -189,8 +189,8 @@ def _submit_deadline_post_job(self, instance, job, instances):
environment = {
"AVALON_DB": os.environ["AVALON_DB"],
"AVALON_PROJECT": instance.context.data["projectName"],
"AVALON_ASSET": instance.context.data["asset"],
"AVALON_TASK": instance.context.data["task"],
"AVALON_ASSET": instance.data['asset'] or instance.context.data["asset"],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (85 > 79 characters)

@ynbot ynbot added size/XS Denotes a PR changes 0-99 lines, ignoring general files module: Deadline AWS Deadline related features labels Mar 26, 2024
@mkolar
Copy link
Member

mkolar commented Sep 2, 2024

@sjt-rvx we're archiving OP repo, so i'm closing this. any further work should be done in AYON repos.

@mkolar mkolar closed this Sep 2, 2024
@ynbot ynbot added this to the next-patch milestone Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
module: Deadline AWS Deadline related features size/XS Denotes a PR changes 0-99 lines, ignoring general files
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants