From 0fba1918a73dc8a548ef97d0a484a2053ccfbffd Mon Sep 17 00:00:00 2001 From: antti-ngp <86244938+antti-ngp@users.noreply.github.com> Date: Fri, 3 Nov 2023 18:50:57 +0200 Subject: [PATCH] Improved instructions for adding dependencies in TaskFlow (#35406) Specified explicitly that the TaskFlow function invocation needs to be put in a variable before adding a dependency between the function and a traditional operator. --- docs/apache-airflow/tutorial/taskflow.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/apache-airflow/tutorial/taskflow.rst b/docs/apache-airflow/tutorial/taskflow.rst index 99702a358eac3..fc7297cd783f4 100644 --- a/docs/apache-airflow/tutorial/taskflow.rst +++ b/docs/apache-airflow/tutorial/taskflow.rst @@ -465,7 +465,8 @@ In the above code block, a new TaskFlow function is defined as ``extract_from_fi reads the data from a known file location. In the main DAG, a new ``FileSensor`` task is defined to check for this file. Please note that this is a Sensor task which waits for the file. -Finally, a dependency between this Sensor task and the TaskFlow function is specified. +The TaskFlow function call is put in a variable ``order_data``. +Finally, a dependency between this Sensor task and the TaskFlow function is specified using the variable. Consuming XComs between decorated and traditional tasks