Skip to content

Conversation

@BigRoy
Copy link
Contributor

@BigRoy BigRoy commented Mar 21, 2025

Changelog Description

Fix submitting of tiled renders from maya.

Additional review information

Initial draft to try and fix Tile Rendering in Maya submissions

Fix:

dependencies/pyblish/plugin.py", line 528, in __explicit_process
    runner(*args)
  File "/home/ralph/.local/share/AYON/addons/deadline_0.5.8/ayon_deadline/abstract_submit_deadline.py", line 125, in process
    job_id = self.process_submission()
  File "/home/ralph/.local/share/AYON/addons/deadline_0.5.8/ayon_deadline/plugins/publish/maya/submit_maya_deadline.py", line 239, in process_submission
    self._tile_render(payload)
  File "/home/ralph/.local/share/AYON/addons/deadline_0.5.8/ayon_deadline/plugins/publish/maya/submit_maya_deadline.py", line 323, in _tile_render
    new_job_info.update(tiles_data["JobInfo"])
AttributeError: 'PublishDeadlineJobInfo' object has no attribute 'update'

Reported here.

However, this now passes that - but fails on:

Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\dependencies\pyblish\plugin.py", line 528, in __explicit_process
    runner(*args)
  File "F:\dev/ayon-deadline/client\ayon_deadline\abstract_submit_deadline.py", line 125, in process
  File "F:\dev\ayon-deadline\client\ayon_deadline\plugins\publish\maya\submit_maya_deadline.py", line 241, in process_submission
    self._tile_render(payload)
  File "F:\dev\ayon-deadline\client\ayon_deadline\plugins\publish\maya\submit_maya_deadline.py", line 459, in _tile_render
    assembly_job_id = self.submit(
                      ^^^^^^^^^^^^
  File "F:\dev/ayon-deadline/client\ayon_deadline\abstract_submit_deadline.py", line 373, in submit
    self.log.debug(payload)
ayon_core.pipeline.publish.publish_plugins.KnownPublishError: Error: One or more auxiliary files for the job were not successully copied during submission, check for network or server issues and try again. (Deadline.Submission.DeadlineSubmissionException)

I'm not sure how this was done before?

Testing notes:

  1. Submitting renders from maya with tiled render checkbox enabled should work

@BigRoy BigRoy added type: bug Something isn't working community Issues and PRs coming from the community members labels Mar 21, 2025
@BigRoy BigRoy self-assigned this Mar 21, 2025
@BigRoy BigRoy marked this pull request as draft March 21, 2025 14:06
@kalisp kalisp requested a review from antirotor March 21, 2025 14:08
@MustafaJafar MustafaJafar linked an issue Mar 21, 2025 that may be closed by this pull request
1 task
new_job_info.update(tiles_data["JobInfo"])
for key, value in tiles_data.items():
setattr(new_job_info, key, value)
new_plugin_info.update(tiles_data["PluginInfo"])
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it'll fail here?
There's another new_plugin_info.update

Copy link
Contributor Author

Choose a reason for hiding this comment

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

new_plugin_info is still a dict only Job info turned into an object.

@BigRoy
Copy link
Contributor Author

BigRoy commented Mar 21, 2025

@ralphmeijerambassadors this PR may be a starting point for you.

@ralphmeijerambassadors
Copy link

Thanks! I will take a look. Currently internally this doesn't have a high priority but will look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Issues and PRs coming from the community members type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maya tile rendering throws AttributeError

3 participants