akotlar opened a new issue #13242:
URL: https://github.com/apache/airflow/issues/13242
**Apache Airflow version**: 2.0.0
**Environment**:
- **Cloud provider or hardware configuration**:
- **OS** (e.g. from /etc/os-release): NAME="Ubuntu 18.04.5 LTS"
- **Kernel** (e.g. `uname -a`): Linux 18.04.1-Ubuntu SMP
- **Install tools**:
- **Others**:
**What happened**:
Tree view does not properly represent the relationship between dependent
task groups. Names are completely wrong.
**What you expected to happen**:
Task groups to be descendants of one another. Names to be correct, prefixed
by the name of the task group
**How to reproduce it**:
Reproduction attached. TL;DR:
```python
with DAG(dag_id=DAG_NAME,
default_args=default_args,
schedule_interval='@daily',
max_active_runs=1,
catchup=False,
tags=['test'],
is_paused_upon_creation=True) as dag:
folders = ['test1', 'test2', 'test3', 'test4']
start = DummyOperator(task_id="start")
with TaskGroup("step1") as task_group1:
for path in folders:
f1 = PythonOperator(
task_id=path,
python_callable=fn1
)
with TaskGroup("step2") as task_group2:
for path in folders:
f2 = PythonOperator(
task_id=path,
python_callable=fn2
)
with TaskGroup("step3") as task_group3:
for path in folders:
f3 = PythonOperator(
task_id=path,
python_callable=fn3
)
start >> task_group1 >> task_group2 >> task_group3
```
**How often does this problem occur? Once? Every time etc?**
Every time


[repo.py.gz](https://github.com/apache/airflow/files/5727820/repo.py.gz)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]