Skip to contents

S3 generic called by GraphRunner after each node execution. Implement this method to create custom termination condition classes.

Usage

check_termination(condition, state, iteration, total_cost)

Arguments

condition

A termination_condition object.

state

A WorkflowState object.

iteration

Integer. Current iteration count.

total_cost

Numeric. Cumulative cost so far.

Value

Logical scalar; TRUE means stop.