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-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to