You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "tirkarthi (via GitHub)" <gi...@apache.org> on 2024/03/16 17:50:38 UTC

[I] Calculate run duration with current time for running tasks in task and dag duration charts [airflow]

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: commits-unsubscribe@airflow.apache.org.apache.org

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


Re: [I] Calculate run duration with current time for running tasks in task and dag duration charts [airflow]

Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi closed issue #38215: Calculate run duration with current time for running tasks in task and dag duration charts
URL: https://github.com/apache/airflow/issues/38215


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