-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Labels
affected_version:2.1Issues Reported for 2.1Issues Reported for 2.1area:webserverWebserver related IssuesWebserver related Issuesgood first issuekind:bugThis is a clearly a bugThis is a clearly a bug
Description
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:
with TaskGroup("tg1", tooltip="Tasks related to task group") as tg1:
DummyOperator(task_id="b") >> DummyOperator(task_id="c")
DummyOperator(task_id="a") >> tg1How to reproduce it:
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") >> tg1Metadata
Metadata
Assignees
Labels
affected_version:2.1Issues Reported for 2.1Issues Reported for 2.1area:webserverWebserver related IssuesWebserver related Issuesgood first issuekind:bugThis is a clearly a bugThis is a clearly a bug

