jason810496 commented on code in PR #71057:
URL: https://github.com/apache/airflow/pull/71057#discussion_r3814391132
##########
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:
Good point, I added the overload in
https://github.com/apache/airflow/pull/71057/commits/9ff93ea45a378ca68cadb6fbabad8f6098fcd91f,
thanks for the suggestion.
--
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]