tirkarthi commented on issue #48630:
URL: https://github.com/apache/airflow/issues/48630#issuecomment-2771514060

   The Airflow 2 task instances might not have any dag version attached to 
them. Following are some of the places that might need a check to ensure 
`dag_version` to be not None.
   
   ```
   rg -i '\.dag_version\.' airflow-core/src/airflow/api_fastapi       
   airflow-core/src/airflow/api_fastapi/core_api/routes/ui/grid.py
   162:        run_dag = tis[0].dag_version.serialized_dag.dag
   
   airflow-core/src/airflow/api_fastapi/core_api/services/ui/grid.py
   180:        serdag = tis[0].dag_version.serialized_dag.dag
   258:    serdags = {ti.dag_version.serialized_dag for ti in task_instances}
   ```


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

Reply via email to