Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions airflow-core/docs/core-concepts/dags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Dags

Here's a basic example DAG:

.. image:: /img/basic-dag.png
.. image:: /img/ui-light/basic_dag.png

It defines four Tasks - A, B, C, and D - and dictates the order in which they have to run, and which tasks depend on what others. It will also say how often to run the DAG - maybe "every 5 minutes starting tomorrow", or "every day since January 1st, 2020".

Expand Down Expand Up @@ -331,7 +331,7 @@ The task_id returned by the Python function has to reference a task directly dow
.. note::
When a Task is downstream of both the branching operator *and* downstream of one or more of the selected tasks, it will not be skipped:

.. image:: /img/branch_note.png
.. image:: /img/ui-light/branch_note.png

The paths of the branching task are ``branch_a``, ``join`` and ``branch_b``. Since ``join`` is a downstream task of ``branch_a``, it will still be run, even though it was not returned as part of the branch decision.

Expand Down Expand Up @@ -491,11 +491,11 @@ You can also combine this with the :ref:`concepts:depends-on-past` functionality

``join`` is downstream of ``follow_branch_a`` and ``branch_false``. The ``join`` task will show up as skipped because its ``trigger_rule`` is set to ``all_success`` by default, and the skip caused by the branching operation cascades down to skip a task marked as ``all_success``.

.. image:: /img/branch_without_trigger.png
.. image:: /img/ui-light/branch_without_trigger.png

By setting ``trigger_rule`` to ``none_failed_min_one_success`` in the ``join`` task, we can instead get the intended behaviour:

.. image:: /img/branch_with_trigger.png
.. image:: /img/ui-light/branch_with_trigger.png


Setup and teardown
Expand Down Expand Up @@ -550,7 +550,7 @@ A TaskGroup can be used to organize tasks into hierarchical groups in Graph view

Tasks in TaskGroups live on the same original DAG, and honor all the DAG settings and pool configurations.

.. image:: /img/task_group.gif
.. image:: /img/ui-light/task_group.gif

Dependency relationships can be applied across all tasks in a TaskGroup with the ``>>`` and ``<<`` operators. For example, the following code puts ``task1`` and ``task2`` in TaskGroup ``group1`` and then puts both tasks upstream of ``task3``:

Expand Down
Binary file removed airflow-core/docs/img/basic-dag.png
Binary file not shown.
Binary file removed airflow-core/docs/img/branch_note.png
Binary file not shown.
Binary file removed airflow-core/docs/img/branch_with_trigger.png
Binary file not shown.
Binary file removed airflow-core/docs/img/branch_without_trigger.png
Binary file not shown.
Binary file removed airflow-core/docs/img/task_group.gif
Binary file not shown.
Binary file added airflow-core/docs/img/ui-dark/basic_dag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added airflow-core/docs/img/ui-dark/branch_note.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added airflow-core/docs/img/ui-dark/task_group.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added airflow-core/docs/img/ui-light/basic_dag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added airflow-core/docs/img/ui-light/branch_note.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added airflow-core/docs/img/ui-light/task_group.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.