mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
nuke: adding node knob for concurrent tasks
- and fixing misspelling
This commit is contained in:
parent
d63a0aad71
commit
5014dfddf9
4 changed files with 17 additions and 7 deletions
|
|
@ -27,7 +27,7 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
# presets
|
||||
priority = 50
|
||||
chunk_size = 1
|
||||
concurent_task = 1
|
||||
concurrent_tasks = 1
|
||||
primary_pool = ""
|
||||
secondary_pool = ""
|
||||
group = ""
|
||||
|
|
@ -154,6 +154,11 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
if chunk_size == 0 and self.chunk_size:
|
||||
chunk_size = self.chunk_size
|
||||
|
||||
# define chunk and priority
|
||||
concurrent_tasks = instance.data.get("deadlineConcurrentTasks")
|
||||
if concurrent_tasks == 0 and self.concurrent_tasks:
|
||||
concurrent_tasks = self.concurrent_tasks
|
||||
|
||||
priority = instance.data.get("deadlinePriority")
|
||||
if not priority:
|
||||
priority = self.priority
|
||||
|
|
@ -178,7 +183,8 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
|
||||
"Priority": priority,
|
||||
"ChunkSize": chunk_size,
|
||||
"ConcurrentTasks": self.concurent_task,
|
||||
"ConcurrentTasks": concurrent_tasks,
|
||||
|
||||
"Department": self.department,
|
||||
|
||||
"Pool": self.primary_pool,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue