ashb commented on issue #19785:
URL: https://github.com/apache/airflow/issues/19785#issuecomment-1174906527
```python
from datetime import datetime
from airflow.models.baseoperator import chain
from airflow.operators.dummy import DummyOperator
from airflow.utils.edgemodifier import Label
from airflow.utils.task_group import TaskGroup
from airflow import DAG
DEFAULT_ARGS = {
'depends_on_past': False,
'retries': 2
}
with DAG(
dag_id="label_bug_without_chain",
start_date=datetime(2022, 5, 20, 0),
default_args=DEFAULT_ARGS,
) as dag:
start = DummyOperator(task_id="sleep_3_seconds")
with TaskGroup(group_id="group1") as taskgroup1:
t1 = DummyOperator(task_id="dummy1")
t2 = DummyOperator(task_id="dummy2")
t3 = DummyOperator(task_id="dummy3")
t4 = DummyOperator(task_id="echo_done")
chain(start, [Label("branch three")], taskgroup1, t4)
```
The issue is still shows up with this dag though.
--
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]