mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Implemented waiting on job id
This commit is contained in:
parent
97043fe310
commit
07139db41c
1 changed files with 8 additions and 0 deletions
|
|
@ -61,6 +61,14 @@ class SubmitJobsToRoyalRender(ContextPlugin):
|
|||
|
||||
def process_submission(self, jobs):
|
||||
# type: ([RRJob]) -> None
|
||||
|
||||
idx_pre_id = 0
|
||||
for job in jobs:
|
||||
job.PreID = idx_pre_id
|
||||
if idx_pre_id > 0:
|
||||
job.WaitForPreIDs.append(idx_pre_id - 1)
|
||||
idx_pre_id += 1
|
||||
|
||||
submission = rrApi.create_submission(
|
||||
jobs,
|
||||
self._submission_parameters)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue