From 7c70d64e03354fa0b03a229bb4d9923962a5067b Mon Sep 17 00:00:00 2001 From: Ramon Montoya Vozmediano <1171039+rmv@users.noreply.github.com> Date: Thu, 26 Oct 2023 14:52:09 -0700 Subject: [PATCH] Add optional purpose enum to bundle creation callback. Signed-off-by: Ramon Montoya Vozmediano <1171039+rmv@users.noreply.github.com> --- src/deadline/maya_submitter/maya_render_submitter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/deadline/maya_submitter/maya_render_submitter.py b/src/deadline/maya_submitter/maya_render_submitter.py index 9187b0c..147f351 100644 --- a/src/deadline/maya_submitter/maya_render_submitter.py +++ b/src/deadline/maya_submitter/maya_render_submitter.py @@ -12,6 +12,7 @@ from deadline.client.job_bundle._yaml import deadline_yaml_dump from deadline.client.ui.dialogs.submit_job_to_deadline_dialog import ( # pylint: disable=import-error SubmitJobToDeadlineDialog, + JobBundlePurpose, ) from deadline.client.exceptions import DeadlineOperationError from PySide2.QtCore import Qt # pylint: disable=import-error @@ -514,6 +515,7 @@ def on_create_job_bundle_callback( queue_parameters: list[dict[str, Any]], asset_references: AssetReferences, host_requirements: Optional[dict[str, Any]] = None, + purpose: JobBundlePurpose = JobBundlePurpose.SUBMISSION, ) -> None: job_bundle_path = Path(job_bundle_dir)