Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish jobs respect staging mode #36

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def _submit_deadline_post_job(self, instance, job, instances):
metadata_path, rootless_metadata_path = \
create_metadata_path(instance, anatomy)

settings_variant = os.environ["AYON_DEFAULT_SETTINGS_VARIANT"]
environment = {
"AYON_PROJECT_NAME": instance.context.data["projectName"],
"AYON_FOLDER_PATH": instance.context.data["folderPath"],
Expand All @@ -207,9 +208,7 @@ def _submit_deadline_post_job(self, instance, job, instances):
"AYON_RENDER_JOB": "0",
"AYON_REMOTE_PUBLISH": "0",
"AYON_BUNDLE_NAME": os.environ["AYON_BUNDLE_NAME"],
"AYON_DEFAULT_SETTINGS_VARIANT": (
os.environ["AYON_DEFAULT_SETTINGS_VARIANT"]
),
"AYON_DEFAULT_SETTINGS_VARIANT": settings_variant,
}

# add environments from self.environ_keys
Expand All @@ -227,8 +226,12 @@ def _submit_deadline_post_job(self, instance, job, instances):
'publish',
'"{}"'.format(rootless_metadata_path),
"--targets", "deadline",
"--targets", "farm"
"--targets", "farm",
]
# TODO remove when AYON launcher respects environment variable
# 'AYON_DEFAULT_SETTINGS_VARIANT'
if settings_variant == "staging":
args.append("--use-staging")
BigRoy marked this conversation as resolved.
Show resolved Hide resolved

# Generate the payload for Deadline submission
secondary_pool = (
Expand Down