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

   ### Description
   
   Currently when a task instance is under execution there is start date but no 
end date. Hence in the charts run duration is calculated as 0 and the bar 
remains with 0 value. But in the grid the duration is calculated with current 
time - start date. The same change can be applied so that users know the task 
run duration and it also gives a growing bar which gives nice feedback with 
respect to average time.
   
   We have a patch for this internally and will be happy to contribute.
   
   Current bar remains zero till task finishes : 
   
   
![image](https://github.com/apache/airflow/assets/3972343/d5d83a58-3d35-42fa-90a0-fa1056994713)
   
   
   Proposed change to calculate run duration with current time :
   
   
![image](https://github.com/apache/airflow/assets/3972343/6b710e7c-f992-48d5-8ebe-96234852890c)
   
   
   ### Use case/motivation
   
   It helps users know the task run duration visualized in the chart and it 
also gives a growing bar which gives nice feedback with respect to average time.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to