uranusjr commented on code in PR #71057:
URL: https://github.com/apache/airflow/pull/71057#discussion_r3812422278
##########
airflow-core/docs/authoring-and-scheduling/language-sdks/java.rst:
##########
@@ -224,10 +224,10 @@ Register tasks manually in a ``BundleBuilder``:
public class MyBundle implements BundleBuilder {
@Override
- public Iterable<Dag> getDags() {
- var dag = new Dag("my_dag");
- dag.addTask("fetch", FetchTask.class);
- dag.addTask("process", ProcessTask.class);
+ public Iterable<DagDef> getDags() {
+ var dag = new DagDef("my_dag")
+ .addTask(new TaskDef("fetch", FetchTask.class))
Review Comment:
Can we hide this `new TaskDef` part by adding an overload? This can be
manually implemented by the user, so egonomics matters.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]