atul-astronomer opened a new issue, #53074:
URL: https://github.com/apache/airflow/issues/53074

   ### Apache Airflow version
   
   3.0.2
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   Triggering a new DAG run sets the previous DAG run's duration to 0 until the 
new run completes.
   
   3.0.3rc4:
   
   
https://github.com/user-attachments/assets/bc3a396c-0b7b-4bfb-ad09-83427e406e08
   
   3.0.2:
   
   
https://github.com/user-attachments/assets/6b659e7f-33a8-42c1-af25-d4214e37149c
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   Have any dag with multiple tasks, have a few dagruns and then trigger a new 
dagrun, notice previous dagrun duration bar in grid view is marked a 0 till the 
time new dagrun is completed.
   
   ```python
   
   from airflow.sdk import DAG
   from pendulum import today
   from airflow.providers.standard.operators.python import PythonOperator
   
   args = {
       "owner": "airflow",
       "start_date": today('UTC').add(days=-2),
   }
   dag = DAG(
       dag_id="Python_operator_test",
       default_args=args,
       schedule=None,
       tags=["core"],
   )
   
   
   def run_this_func():
       print("hello")
   
   
   def run_this_func2():
       print("hi")
   
   
   with dag:
       run_this_task = PythonOperator(
           task_id="run_this",
           python_callable=run_this_func,
       )
       run_this_task2 = PythonOperator(task_id="run_this2", 
python_callable=run_this_func2)
       run_this_task3 = PythonOperator(task_id="run_this3", 
python_callable=run_this_func)
   
   
   run_this_task >> run_this_task2 >> run_this_task3
   
   ```  
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### 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