Skip to content

Commit

Permalink
Improved instructions for adding dependencies in TaskFlow (#35406)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
antti-ngp committed Nov 3, 2023
1 parent 64d1085 commit 0fba191
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/apache-airflow/tutorial/taskflow.rst
Expand Up @@ -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
Expand Down

0 comments on commit 0fba191

Please sign in to comment.