ephraimbuddy commented on a change in pull request #18562:
URL: https://github.com/apache/airflow/pull/18562#discussion_r720354001
##########
File path: airflow/example_dags/example_trigger_target_dag.py
##########
@@ -24,11 +24,12 @@
from datetime import datetime
from airflow import DAG
+from airflow.decorators import task
from airflow.operators.bash import BashOperator
-from airflow.operators.python import PythonOperator
-def run_this_func(dag_run):
+@task(task_id="run_this")
+def run_this_func(dag_run=None):
Review comment:
From a syntax standpoint, the dag_run should be a required value if we
access its attribute as we did. I would suggest we change it but I don't have
strong opinion on it
--
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]