Skip to content

feat: Use SubmissionContext pattern for efficient scene queries#13

Open
leon-li-inspire wants to merge 2 commits into
ynput:developfrom
leon-li-inspire:feature/submission-context-pattern
Open

feat: Use SubmissionContext pattern for efficient scene queries#13
leon-li-inspire wants to merge 2 commits into
ynput:developfrom
leon-li-inspire:feature/submission-context-pattern

Conversation

@leon-li-inspire
Copy link
Copy Markdown
Collaborator

Summary

Changes

  • plugins/create/maya/create_job.py: Creates a shared SubmissionContext and passes context= to both get_job_template_for_submission() and get_parameter_values_for_submission()
  • plugins/publish/collect_deadline_cloud_job_data.py: Same pattern — creates context once, passes to _build_job_template() and get_parameter_values_for_submission()

Test plan

  • Open Maya via AYON Launcher
  • Create a Deadline Cloud Render Job instance — verify attribute definitions load correctly
  • Publish the instance — verify job data is collected and submitted successfully
  • Verify create_submission_context is importable: from deadline.maya_submitter.maya_render_submitter import create_submission_context

🤖 Generated with Claude Code

…ries

Use create_submission_context() from deadline-cloud-for-maya to compute
scene data once and share it across get_job_template_for_submission() and
get_parameter_values_for_submission() calls, avoiding redundant
_set_render_layer_data() invocations.

Requires: aws-deadline/deadline-cloud-for-maya with SubmissionContext support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@leon-li-inspire leon-li-inspire requested a review from antirotor May 8, 2026 18:04
@antirotor
Copy link
Copy Markdown
Member

Thanks, LGTM, will do it once the linked PR is merged and synced.

@antirotor antirotor added enhancement New feature or request type: enhancement Improvement of existing functionality or minor addition labels May 11, 2026
Resolve conflict in collect_deadline_cloud_job_data.py by integrating
the SubmissionContext pattern with the new submitter_bridge abstraction.
The bridge now exposes create_submission_context as an optional callable,
allowing hosts that support it (Maya) to share computed scene data across
template and parameter calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants