You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jessicaschueler (via GitHub)" <gi...@apache.org> on 2026/02/13 22:09:41 UTC

[I] Task Dduration is missing in dag view while task is running. [airflow]

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

   ### Apache Airflow version
   
   3.1.7
   
   ### If "Other Airflow 3 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   When the task is in the running state, the 'Duration' is not visible in the UI. It is only visiblwe once the dag is in a terminal state. 
   <img width="1303" height="513" alt="Image" src="https://github.com/user-attachments/assets/8602210a-3747-4b96-8ae7-d5967f7d7dcf" />
   
   This appears to have begun with Airflow 3.1.1, and is till happening in 3.1.7.
   
   ### What you think should happen instead?
   
   In previous versions, including 3.0.x and 3.1.0, 'Duration' was visible while the task was running, as wel as after the task was in a terminal state. 
   <img width="1303" height="526" alt="Image" src="https://github.com/user-attachments/assets/a348af9a-f506-4305-ab62-a7e058283b0e" />
   
   ### How to reproduce
   
   Run any dag in 3.1.1+ and view the dags page during the task run. 
   
   ### Operating System
   
   mac OS 15.7.3
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Astronomer
   
   ### 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-unsubscribe@airflow.apache.org.apache.org

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


Re: [I] Task duration is missing in dag view while task is running. [airflow]

Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming closed issue #61887: Task duration is missing in dag view while task is running.
URL: https://github.com/apache/airflow/issues/61887


-- 
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] Task duration is missing in dag view while task is running. [airflow]

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

   This was changed in 8847e646b802857e6665e63a010bfb24d45c1f96 . DagRun header calculates the duration from start_date and end_date. TaskInstance header should also do it when TaskInstance.duration is null with task instance in running state.
   
   https://github.com/apache/airflow/blob/3060cea11799ea669215dba0ba91cf0ee6e89d2f/airflow-core/src/airflow/ui/src/pages/Run/Header.tsx#L114
   
   https://github.com/apache/airflow/blob/3060cea11799ea669215dba0ba91cf0ee6e89d2f/airflow-core/src/airflow/ui/src/pages/TaskInstance/Header.tsx#L49


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