uranusjr commented on issue #66332:
URL: https://github.com/apache/airflow/issues/66332#issuecomment-4369883831
I’m going with the following syntax for now
```java
@Dag(id = "java_example_dag")
public class MyExample {
@Task(id = "task1")
public static int taskOne(Context ctx, Client client) {
return 1;
}
}
```
* Does not implement XComArg for now (will be added later)
* Does not support dag and task params (done in the stub dag; pure Java dag
support later)
The annotations will replace the current Task-Dag-DagBundle way to declare
dags.
--
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]