You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dor-bernstein (via GitHub)" <gi...@apache.org> on 2025/06/25 12:21:52 UTC
[I] Task groups relationships falsely decleared as circular [airflow]
dor-bernstein opened a new issue, #52245:
URL: https://github.com/apache/airflow/issues/52245
### Apache Airflow version
3.0.2
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
I have a dag in airflow 2.10.4 that is defined like this:
```python
from airflow.utils.task_group import TaskGroup
from airflow import DAG
with DAG as dag:
with Taskgroup(group_id='tg1') as tg1:
t1 = EmptyOperator(task_id='t1', dag=dag)
with Taskgroup(group_id='tg2') as tg2:
t2= EmptyOperator(task_id='t2', dag=dag)
t1 >> t2
```
The dag renders successfully but t2 fails with the following error:
Cycle detected in DAG
t2.set_upstream(t1) works but t1.set_downstream(t2) doesn't work
### What you think should happen instead?
The >> operator should work as it was in 2.10
### How to reproduce
I have a dag in airflow 2.10.4 that is defined like this:
```python
from airflow.utils.task_group import TaskGroup
from airflow import DAG
with DAG as dag:
with Taskgroup(group_id='tg1') as tg1:
t1 = EmptyOperator(task_id='t1', dag=dag)
with Taskgroup(group_id='tg2') as tg2:
t2= EmptyOperator(task_id='t2', dag=dag)
t1 >> t2
```
The dag renders successfully but t2 fails with the following error:
Cycle detected in DAG
t2.set_upstream(t1) works but t1.set_downstream(t2) doesn't work
### Operating System
airflow official docker
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Task groups relationships falsely decleared as circular in airflow3.0.2 [airflow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #52245: Task groups relationships falsely decleared as circular in airflow3.0.2
URL: https://github.com/apache/airflow/issues/52245
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Task groups relationships falsely decleared as circular in airflow3.0.2 [airflow]
Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on issue #52245:
URL: https://github.com/apache/airflow/issues/52245#issuecomment-3004734501
I'm not able to reproduce. It's working fine on both 3.0.2 and main branch
```
from airflow.utils.task_group import TaskGroup
from airflow import DAG
from airflow.operators.empty import EmptyOperator
from datetime import datetime
with DAG(
dag_id='example_dag123',
start_date=datetime(2024, 1, 1)
) as dag:
with TaskGroup(group_id='tg1') as tg1:
t1 = EmptyOperator(task_id='t1')
with TaskGroup(group_id='tg2') as tg2:
t2 = EmptyOperator(task_id='t2')
t1 >> t2
```

--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Task groups relationships falsely decleared as circular in airflow3.0.2 [airflow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #52245:
URL: https://github.com/apache/airflow/issues/52245#issuecomment-3081918567
This issue has been closed because it has not received response from the issue author.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Task groups relationships falsely decleared as circular in airflow3.0.2 [airflow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #52245:
URL: https://github.com/apache/airflow/issues/52245#issuecomment-3054571283
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org