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
   ```
   ![without 
Taskgroup](https://user-images.githubusercontent.com/35238779/128502690-58b31577-91d7-4b5c-b348-4779c9286958.png)
   
   **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
   ```
   ![with 
TaskGroup](https://user-images.githubusercontent.com/35238779/128502758-5252b7e7-7c30-424a-ac3a-3f9a99b0a805.png)
   
   


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


Reply via email to