You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add team name to dag attributes and task context variables #65465
When running in multi team mode we should pass the team name that the task belongs to into the TaskInstance context variables, and possibly add a DAG.team_name attribute. This would be useful for setting team level policies in the airflow_local_settings.py hooks.
Use case/motivation
Setting team level policies for tasks, dags in airflow_local_settings.py and providing team template variables using jinja2, e.g. {{ ti.team_name }}, {{ dag.team_name }} or just {{ team_name }}. This would allow us to create team separated log file paths in the log_file_nametemplate config setting with their own team specific access policies.
Activity
kunaldevsahu commentedon Apr 18, 2026
@stephen-bracken
I’d like to work on this issue and contribute a fix. Please let me know if I can proceed.
jroachgolf84 commentedon Apr 20, 2026
@kunaldevsahu, please feel free to open a PR for this issue.
ElangoSubramani commentedon Apr 21, 2026
Hi, Anyone still working on this?
If not, Can I work on this?
stephen-bracken commentedon May 21, 2026
provided as
dag_run.team_namein #65617