Iterative Jobs API

Experimental interface to support iterative jobs.
Example K-means code.