cb149 opened a new issue #17469:
URL: https://github.com/apache/airflow/issues/17469
**Apache Airflow version**: 2.1.0
**What happened**:
Using a Label infront of a TaskGroup breaks task dependencies, as tasks
before the TaskGroup will now point to the last task in the TaskGroup.
**What you expected to happen**:
Task dependencies with or without Labels should be the same (and preferably
the Label should be visible outside of the TaskGroup).
Behavior without a Label is as follows:
```python
with TaskGroup("tg1", tooltip="Tasks related to task group") as tg1:
DummyOperator(task_id="b") >> DummyOperator(task_id="c")
DummyOperator(task_id="a") >> tg1
```

**How to reproduce it**:
```python
with TaskGroup("tg1", tooltip="Tasks related to task group") as tg1:
DummyOperator(task_id="b") >> DummyOperator(task_id="c")
DummyOperator(task_id="a") >> Label("testlabel") >> tg1
```

--
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]