Task Def
One task definition: its ID, the class that implements it, its upstream dependencies, and its task-level configuration.
Edges are drawn on the handles that DagDef.task returns, not here:
var dag = new DagDef("java_etl");
dag.addTask(new TaskDef("extract", Extract.class).config("retries", 2));Content copied to clipboard
Parameters
id
Task identifier, unique within a DagDef.
definition
Class that implements Task. Must have a public no-arg constructor.