Skip to content
Draft
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 @@ -25,6 +25,7 @@
import itertools
from collections import OrderedDict
from dataclasses import dataclass, field, asdict
from typing import Tuple, Dict, Any

from ayon_core.pipeline import (
AYONPyblishPluginMixin
Expand All @@ -36,6 +37,7 @@
from ayon_maya.api.lib_rendersettings import RenderSettings
from ayon_maya.api.lib import get_attr_in_layer

from ayon_deadline.lib import PublishDeadlineJobInfo
from ayon_deadline import abstract_submit_deadline


Expand Down Expand Up @@ -244,7 +246,9 @@ def process_submission(self):
auth=auth,
verify=verify)

def _tile_render(self, payload):
def _tile_render(
self, payload: Tuple[PublishDeadlineJobInfo, Dict[str, Any]]
):
"""Submit as tile render per frame with dependent assembly jobs."""

# As collected by super process()
Expand Down Expand Up @@ -320,7 +324,8 @@ def _tile_render(self, payload):
payload_plugin_info["OutputFilePrefix"]
)[0]

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.


self.log.debug("hashing {} - {}".format(file_index, file))
Expand Down
Loading