Skip to content

Commit

Permalink
doc change (#35075)
Browse files Browse the repository at this point in the history
Co-authored-by: Shubham <shubhamraj@cloudera.com>
(cherry picked from commit a4ab95a)
  • Loading branch information
shubhamraj-git authored and ephraimbuddy committed Oct 30, 2023
1 parent c000316 commit 4c499f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apache-airflow/core-concepts/dags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ There are two main ways to declare individual task dependencies. The recommended

Or, you can also use the more explicit ``set_upstream`` and ``set_downstream`` methods::

first_task.set_downstream(second_task, third_task)
first_task.set_downstream([second_task, third_task])
third_task.set_upstream(fourth_task)

There are also shortcuts to declaring more complex dependencies. If you want to make two lists of tasks depend on all parts of each other, you can't use either of the approaches above, so you need to use ``cross_downstream``::
Expand Down

0 comments on commit 4c499f5

Please sign in to comment.