Search - User list
Full Version: Calling onScheduleStatic
Root » PDG/TOPs » Calling onScheduleStatic
joshm
Hello!

I'm trying to explore more of creating a scheduler with our farm software. I wanted to experiment using the onScheduleStatic. I can't seem to figure out how to call the onScheduleStatic on a submitJob without calling it directly.

I saw that I should be able to run this, but I get a False return value and none of my debug statements work under the onScheduleStatic function. I think my implementation may be wrong for this?
pdg.GraphContext().cook(True, pdg.cookType.StaticDepsFull)

pdg.cookType.StaticDepsFull

Does a static cook of the whole graph. This consists of doing a GenerateFull, and then calling the onScheduleStatic implementation of the users custom scheduler.

Note that this is a fairly obscure cook mode, and will not work out of the box with stock schedulers.

Any direction would help!
Thank you!
Josh
joshm
I added this to the submitAsJob function and it works!

node = hou.node(node_path)
node.executeGraph(True, True, False, True)
return node.getPDGGraphContext().cook(False, pdg.cookType.StaticDepsFull)
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