waynewu
June 15, 2020 17:35:34
Hi,
I have a question about the static argument for the onStartCook callback when implementing a scheduler. It seems like static always return False regardless if I do “Generate Static Work Items” or “Cook Output Node”. I would expect “Generate Static Work Items” to pass in static as True? Unless the static argument is not what I think it is.
Thanks!
Wayne W.
chrisgreb
June 15, 2020 19:19:39
static refers to a static graph cook, see
onScheduleStatic:
sidefx.com/docs/houdini/tops/schedulers_callbacks.html#scheduler-callbacks“Generate Static Work Items” performs the generation phase of a PDG cook.
onStartCook is called, but the “static” in this case refers to the fact that no cooking of work items is performed, so no dynamic generation can occur.