Running PDG Job nodes in a sequence.

   2691   4   2
User Avatar
Member
517 posts
Joined: Dec. 2013
Offline
Hi all!

I have this super handy file that exports a bunch of fbx's to Unity.

Is there a way to set them all off at once but have each node (1,2,3) wait for the last node to fully complete before generating?

They can't be in the one stream as they each of them has to get the source files from the top node.

Any ideas? I'm sure there'd be a way to do this but I'm stumped.
Thanks!
Pete
Edited by peteski - Dec. 16, 2020 20:10:12

Attachments:
Screen Shot 2020-12-17 at 11.38.13 am.png (102.3 KB)

User Avatar
Member
1737 posts
Joined: May 2006
Offline
Top nodes can have their own scheduler overrides, similar to render overrides; if a top node has a matching parameter name, like the number of threads or whatnot, that'll be used.

There's a handy tab now to set this up quickly from any node, see the gif.

So, add those overrides, set the mode to 'single' and... it works some of the time? Wierdly when I tried this it worked once, then when I tried again to record the gif you'll see below, it still kept running multiple workitems in parallel.

To really force it, I also had set the workitem priority to @pdg_index.

There might be an even easier way, assuming one of the tops crew will chime in.

Attachments:
serial_workitems.gif (2.1 MB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
517 posts
Joined: Dec. 2013
Offline
Hey thanks!
I was trying to get each individual node to cook in sequence rather than each task, but I hadn't figured out the scheduler stuff so I just gave each node a custom priority expression of 1,2,3 and they seem to go in order


Thanks!

Attachments:
Screen Shot 2020-12-18 at 9.49.52 am.png (233.4 KB)

User Avatar
Member
603 posts
Joined: Sept. 2016
Offline
The usual way to do this is to insert a "Wait For All" in between each stage. There isn't much cost to doing a separate File Pattern for each step, so it may be simpler to do it that way:

File Pattern -> Export 1 -> Wait For All -> File Pattern -> Export 2 -> ..
User Avatar
Member
517 posts
Joined: Dec. 2013
Offline
Oh cool yeah that works great!
Thanks Chris!
  • Quick Links