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

Deadline: Submit Publish job error #6263

Merged
merged 4 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
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 @@ -108,7 +108,6 @@ def get_job_info(self):
if key in os.environ}, **legacy_io.Session)

# TODO replace legacy_io with context.data
environment["AVALON_DB"] = os.environ.get("AVALON_DB")
environment["AVALON_PROJECT"] = project_name
environment["AVALON_ASSET"] = instance.context.data["asset"]
environment["AVALON_TASK"] = instance.context.data["task"]
Expand All @@ -122,6 +121,7 @@ def get_job_info(self):
environment["AYON_REMOTE_PUBLISH"] = "1"
else:
environment["OPENPYPE_REMOTE_PUBLISH"] = "1"
environment["AVALON_DB"] = os.environ.get("AVALON_DB")
for key, value in environment.items():
job_info.EnvironmentKeyValue[key] = value

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def _submit_deadline_post_job(self, instance, job):
create_metadata_path(instance, anatomy)

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"],
Expand All @@ -147,6 +146,7 @@ def _submit_deadline_post_job(self, instance, job):
environment["AYON_BUNDLE_NAME"] = os.environ["AYON_BUNDLE_NAME"]
deadline_plugin = "Ayon"
else:
environment["AVALON_DB"] = os.environ["AVALON_DB"]
environment["OPENPYPE_PUBLISH_JOB"] = "1"
environment["OPENPYPE_RENDER_JOB"] = "0"
environment["OPENPYPE_REMOTE_PUBLISH"] = "0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ def _submit_deadline_post_job(self, instance, job, instances):
create_metadata_path(instance, anatomy)

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"],
Expand All @@ -203,6 +202,7 @@ def _submit_deadline_post_job(self, instance, job, instances):
environment["AYON_BUNDLE_NAME"] = os.environ["AYON_BUNDLE_NAME"]
deadline_plugin = "Ayon"
else:
environment["AVALON_DB"] = os.environ["AVALON_DB"]
environment["OPENPYPE_PUBLISH_JOB"] = "1"
environment["OPENPYPE_RENDER_JOB"] = "0"
environment["OPENPYPE_REMOTE_PUBLISH"] = "0"
Expand Down
Loading