Search - User list
Full Version: Running PDG Job nodes in a sequence.
Root » PDG/TOPs » Running PDG Job nodes in a sequence.
peteski
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
mestela
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.
peteski
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!
chrisgreb
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 -> ..
peteski
Oh cool yeah that works great!
Thanks Chris!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB