aporwal17 commented on issue #49332:
URL: https://github.com/apache/airflow/issues/49332#issuecomment-2808523740
I believe I’ve identified the issue, though I’m not entirely sure if this is
the intended approach. It seems we need to define owner within `default_args`
and then pass it to the DAG as a parameter.
```
import os
from datetime import datetime, timedelta
from airflow.models.dag import DAG
from airflow.operators.bash import BashOperator
default_args = {
"owner": "admin"
}
with DAG(
dag_id="example_dag_owners",
start_date=datetime(2025, 4, 15),
schedule="0 0 * * *",
default_args=default_args,
owner_links={"admin": "https://airflow.apache.org"},
) as dag:
BashOperator(task_id="task_using_linked_owner", bash_command="echo 1")

```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]