josh-fell commented on a change in pull request #22157:
URL: https://github.com/apache/airflow/pull/22157#discussion_r824041065



##########
File path: 
airflow/providers/amazon/aws/example_dags/example_redshift_data_execute_sql.py
##########
@@ -71,10 +68,8 @@ def output_results_fn(id):
         poll_interval=POLL_INTERVAL,
         await_result=True,
     )
+    # [END howto_redshift_data]
 
-    # Using a task-decorated function to output the list of tables in a 
Redshift cluster
-    output_results_fn(redshift_query.output)
-
+    task_output = output_query_results(task_query.output)
 
-example_redshift_data_dag = example_redshift_data()
-# [END howto_redshift_data]
+    chain(task_query, task_output)

Review comment:
       This is redundant. The dependencies between these tasks should be handle 
implicitly via the TaskFlow API in `output_query_results(task_query.output)`




-- 
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]


Reply via email to