S3 generic called by GraphRunner after each node execution. Implement this method to create custom termination condition classes.
Arguments
- condition
A
termination_conditionobject.- state
A WorkflowState object.
- iteration
Integer. Current iteration count.
- total_cost
Numeric. Cumulative cost so far.