You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/16 10:19:47 UTC

[GitHub] [airflow] MolochkoVitaly opened a new issue #13101: Incorrectly rendered graph

MolochkoVitaly opened a new issue #13101:
URL: https://github.com/apache/airflow/issues/13101


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**: 1.10.10
   
   **What happened**: 
   
   ```
   from airflow.operators.dummy_operator import DummyOperator
   from airflow import DAG
   from datetime import datetime
   
   
   default_args = {
       'start_date': datetime(2021, 1, 1),
       'owner': 'airflow'
   }
   
   
   dag = DAG('dummy_dag', default_args=default_args)
   
   op1 = DummyOperator(task_id="op1", dag=dag)
   op2 = DummyOperator(task_id="op2", dag=dag)
   op3 = DummyOperator(task_id="op3", dag=dag)
   op4 = DummyOperator(task_id="op4", dag=dag)
   op5 = DummyOperator(task_id="op5", dag=dag)
   
   
   op1 >> [op2, op3 >> op4] >> op5
   ```
   
   ![image](https://user-images.githubusercontent.com/11045746/102335030-6f539d00-3fa0-11eb-9b54-d5bfd79601e3.png)
   
   
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**: 
   
   ![image](https://user-images.githubusercontent.com/11045746/102335407-ea1cb800-3fa0-11eb-866d-74be8b2731c6.png)
   
   
   **How to reproduce it**:
   Run code above
   


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

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



[GitHub] [airflow] MolochkoVitaly commented on issue #13101: Incorrectly rendered graph

Posted by GitBox <gi...@apache.org>.
MolochkoVitaly commented on issue #13101:
URL: https://github.com/apache/airflow/issues/13101#issuecomment-746173122


   Thanks for clarifying


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

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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #13101: Incorrectly rendered graph

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #13101:
URL: https://github.com/apache/airflow/issues/13101#issuecomment-746043504


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


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

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



[GitHub] [airflow] ashb closed issue #13101: Incorrectly rendered graph

Posted by GitBox <gi...@apache.org>.
ashb closed issue #13101:
URL: https://github.com/apache/airflow/issues/13101


   


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

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



[GitHub] [airflow] ashb commented on issue #13101: Incorrectly rendered graph

Posted by GitBox <gi...@apache.org>.
ashb commented on issue #13101:
URL: https://github.com/apache/airflow/issues/13101#issuecomment-746059692


   The issue is `op3 >> op4`. This expression returns the right hand side, so to expand out `op1 >> [op2, op3 >> op4] >> op5`, it is equivalent to:
   
   ```python
   op1 >> op2
   op3 >> op4
   op1 >> op4
   op2 >> op5
   op4 >> op5
   ```
   
   To get the structure you want you need to split it up a bit.
   
   
   ```python
   op1 >> [op2, op3]
   op3 >> op4
   op5 << [op2, op4]
   ```
   
   (I can't remember if you can do `[op2, op4] >> op5` or not.)


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

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