Skip to content
Open
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
1 change: 1 addition & 0 deletions airflow-core/docs/authoring-and-scheduling/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ It's recommended that you first review the pages in :doc:`core concepts </core-c
connections
dynamic-task-mapping
assets
ownership

.. _scheduling-section:

Expand Down
36 changes: 36 additions & 0 deletions airflow-core/docs/authoring-and-scheduling/ownership.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

.. http://www.apache.org/licenses/LICENSE-2.0

.. Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.


.. _ownership:

Ownership
=========

When multiple users are authoring the DAGs of a single Airflow instance, it can be tedious to know who is responsible of what.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've decided to refer to “DAG” as “Dag” from now on, so please change it accordingly.

One way to overcome this is to attach owners, allowing users to know who is in charge of a particular DAG or Task.

This ownership is split in two parts:

1. at the Task level, through the ``owner`` argument of the :class:`~airflow.models.baseoperator.BaseOperator`;
2. at the DAG level, to customize the UI through the ``owner_links`` definition.

In Airflow 2, the list of owners was displayed in the DAG list view, not taking into account the ``owner_links`` value.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is misleading because it generalizes for all of Airflow 2. The owner_links feature was added in version 2.4.0, so it did work in later Airflow 2 releases.

https://airflow.apache.org/docs/apache-airflow/2.4.0/howto/add-owner-links.html

Starting with Airflow 3.1, the owners are displayed in the header of the DAG view.
Hence, a clickable link (that may be a instant messaging handle or a mailto link) is displayed for any owner matching an item defined in the ``owner_links`` dictionary is converted to a clickable link.

If you don't need the Task level granularity, and want to define a set of owners at the DAG level, you may leverage the :ref:`default_args argument<concepts-default-arguments>` to apply the same set of owners to every tasks in the DAG.
1 change: 0 additions & 1 deletion airflow-core/docs/core-concepts/dags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,6 @@ This is especially useful if your tasks are built dynamically from configuration
Here's a [url](www.airbnb.com)
"""


Packaging dags
--------------

Expand Down
2 changes: 2 additions & 0 deletions docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ celltags
centric
cfg
cgi
cgitb
Cgroups
cgroups
cgroupspy
Expand Down Expand Up @@ -1967,6 +1968,7 @@ utilise
Utils
utils
uuid
uv
V1JobList
validator
validators
Expand Down