You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/08/06 13:27:09 UTC

[GitHub] [airflow] ashb commented on a change in pull request #16866: Remove default_args pattern + added get_current_context() use for Core Airflow example DAGs

ashb commented on a change in pull request #16866:
URL: https://github.com/apache/airflow/pull/16866#discussion_r684234050



##########
File path: airflow/example_dags/example_trigger_target_dag.py
##########
@@ -28,19 +28,18 @@
 from airflow.utils.dates import days_ago
 
 
-def run_this_func(**context):
+def run_this_func(dag_run):
     """
     Print the payload "message" passed to the DagRun conf attribute.
 
-    :param context: The execution context
-    :type context: dict
+    :param dag_run: The DagRun object
+    :type dag_run: dict

Review comment:
       ```suggestion
       :type dag_run: DagRun
   ```




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org