|
| 1 | + .. Licensed to the Apache Software Foundation (ASF) under one |
| 2 | + or more contributor license agreements. See the NOTICE file |
| 3 | + distributed with this work for additional information |
| 4 | + regarding copyright ownership. The ASF licenses this file |
| 5 | + to you under the Apache License, Version 2.0 (the |
| 6 | + "License"); you may not use this file except in compliance |
| 7 | + with the License. You may obtain a copy of the License at |
| 8 | +
|
| 9 | + .. http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | + .. Unless required by applicable law or agreed to in writing, |
| 12 | + software distributed under the License is distributed on an |
| 13 | + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | + KIND, either express or implied. See the License for the |
| 15 | + specific language governing permissions and limitations |
| 16 | + under the License. |
| 17 | +
|
| 18 | +
|
| 19 | +.. _ownership: |
| 20 | + |
| 21 | +Ownership |
| 22 | +========= |
| 23 | + |
| 24 | +When multiple users are authoring the DAGs of a single Airflow instance, it can be tedious to know who is responsible of what. |
| 25 | +One way to overcome this is to attach owners, allowing users to know who is in charge of a particular DAG or Task. |
| 26 | + |
| 27 | +This ownership is split in two parts: |
| 28 | + |
| 29 | +1. at the Task level, through the ``owner`` argument of the :class:`~airflow.models.baseoperator.BaseOperator`; |
| 30 | +2. at the DAG level, to customize the UI through the ``owner_links`` definition. |
| 31 | + |
| 32 | +In Airflow 2, the list of owners was displayed in the DAG list view, not taking into account the ``owner_links`` value. |
| 33 | +Starting with Airflow 3.1, the owners are displayed in the header of the DAG view. |
| 34 | +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. |
| 35 | + |
| 36 | +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. |
| 37 | + |
| 38 | + |
0 commit comments