You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "pierrejeambrun (via GitHub)" <gi...@apache.org> on 2025/07/08 12:00:20 UTC

[I] Grid loading issue when the dag structure changed [airflow]

pierrejeambrun opened a new issue, #53025:
URL: https://github.com/apache/airflow/issues/53025

   ### Body
   
   I was working on https://github.com/apache/airflow/issues/53002.
   
   Starting from the DAG:
   ```python
   from datetime import datetime
   
   from airflow import Dataset
   from airflow.decorators import dag
   from airflow.providers.standard.operators.python import BranchPythonOperator
   from airflow.providers.standard.operators.empty import EmptyOperator
   
   # these two will have downstream dags
   left = Dataset("left")
   right = Dataset("right")
   
   
   @dag(start_date=datetime(1970, 1, 1), schedule=None)
   def branch_empty():
       l = EmptyOperator(task_id="left", outlets=[left])
       c = EmptyOperator(task_id="center", outlets=[])
       r = EmptyOperator(task_id="right", outlets=[right])
       BranchPythonOperator(
           task_id="decide", python_callable=lambda: ["left", "center"]
       ) >> [l, c, r]
   
   
   branch_empty()
   ```
   
   Running the DAG.
   
   Then creating a new version with an additional task:
   ```
   from datetime import datetime
   
   from airflow import Dataset
   from airflow.decorators import dag
   from airflow.providers.standard.operators.empty import EmptyOperator
   from airflow.providers.standard.operators.python import BranchPythonOperator, PythonOperator
   
   # these two will have downstream dags
   left = Dataset("left")
   right = Dataset("right")
   
   
   @dag(start_date=datetime(1970, 1, 1), schedule=None)
   def branch_empty():
       l = EmptyOperator(task_id="left", outlets=[left])
       c = EmptyOperator(task_id="center", outlets=[])
       r = EmptyOperator(task_id="right", outlets=[right])
       rr = PythonOperator(task_id="right_right", outlets=[], python_callable=lambda: None)
       BranchPythonOperator(task_id="decide", python_callable=lambda: ["left", "center"]) >> [l, c, r, rr]
   
   
   branch_empty()
   ```
   
   Wait for the new version, refresh the UI, grid won't load anymore with error 500, and the server displaying:
   
   <img width="1889" height="933" alt="Image" src="https://github.com/user-attachments/assets/d10839ae-d8a3-4399-8e77-6161cdab6d50" />
   
   
   
   ### Committer
   
   - [x] I acknowledge that I am a maintainer/committer of the Apache Airflow project.


-- 
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] Grid loading issue when the dag structure changed [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #53025:
URL: https://github.com/apache/airflow/issues/53025#issuecomment-3048658378

   @kaxil One more to watch, might affect current RCs if confirmed.


-- 
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] Grid loading issue when the dag structure changed [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #53025:
URL: https://github.com/apache/airflow/issues/53025#issuecomment-3048779395

   Already fixed by https://github.com/apache/airflow/pull/52822, closing.


-- 
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] Grid loading issue when the dag structure changed [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #53025:
URL: https://github.com/apache/airflow/issues/53025#issuecomment-3048647163

   This was working fine in `3.0.2`, I suspect this is caused by the recent Grid optimization / changes.
   
   cc: @dstandish 


-- 
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] Grid loading issue when the dag structure changed [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun closed issue #53025: Grid loading issue when the dag structure changed
URL: https://github.com/apache/airflow/issues/53025


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