mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-03 09:24:57 +01:00
Draft stash for refactoring maya submit deadline to use AbstractSubmitDeadline base.
- This does *NOT* work currently!
This commit is contained in:
parent
c74a6a87d1
commit
65d785d100
2 changed files with 623 additions and 696 deletions
|
|
@ -359,6 +359,27 @@ class DeadlineJobInfo(object):
|
|||
def OutputDirectory(self, val): # noqa: N802
|
||||
self._outputDirectory.append(val)
|
||||
|
||||
# Asset Dependency
|
||||
# ----------------------------------------------
|
||||
_assetDependency = attr.ib(factory=list)
|
||||
|
||||
@property
|
||||
def AssetDependency(self): # noqa: N802
|
||||
"""Return all OutputDirectory values formatted for Deadline.
|
||||
|
||||
Returns:
|
||||
dict: as `{'OutputDirectory0': 'dir'}`
|
||||
|
||||
"""
|
||||
out = {}
|
||||
for index, v in enumerate(self._assetDependency):
|
||||
out["AssetDependency{}".format(index)] = v
|
||||
return out
|
||||
|
||||
@OutputDirectory.setter
|
||||
def AssetDependency(self, val): # noqa: N802
|
||||
self._assetDependency.append(val)
|
||||
|
||||
# Tile Job
|
||||
# ----------------------------------------------
|
||||
TileJob = attr.ib(default=None) # Default: false
|
||||
|
|
@ -396,6 +417,7 @@ class DeadlineJobInfo(object):
|
|||
serialized.update(self.OutputFilename)
|
||||
serialized.update(self.OutputFilenameTile)
|
||||
serialized.update(self.OutputDirectory)
|
||||
serialized.update(self.AssetDependency)
|
||||
return serialized
|
||||
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue