Share

Executing a Job

Once the value of each Job's Input has been set (or a defaultValue has been defined in the graph for this input port), then the graph can be executed using the Job::execute() method.

The execute() method supports two modes. The default one, JobExecutionMode::kDefault, tells the Job to execute the graph normally. The JobExecutionMode::kResetStates mode tells the Job to reset the values of all feedback ports that may be present in the graph before executing the graph. When you have feedback ports in your graph, these two modes let you decide if you want to use their current values from the previous execution and continue to iterate, or if you want to restart the iterations from the beginning.

Was this information helpful?