tirkarthi opened a new pull request, #46504:
URL: https://github.com/apache/airflow/pull/46504

   This uses the API to get recent 14 dag runs to plot the chart along with 
average of the run and queued duration as annotations. The size is 1/3 since 
there will be 2 more for success/failed rate and grouped durations as per 
design. This is for initial implementation and might not completely cover all 
use cases like Airflow 2 but can be taken up in subsequent PRs or separate 
issues for them as below. If approved a similar overview page can be created 
for task page as well in another PR for task duration.
   
   Notes to self and review 
   
   1. It seems `stateColor.ts` was removed. What is the recommended way to show 
color based on state for a given theme?
   2. Legend is not implemented now where in Airflow 2 it can be selected to 
show only those values.
   3. Duration is now in seconds and conversion to other units is yet to be 
implemented.
   4. x axis value is set to 3 since high number causes values to render 
vertically amidst smaller space.
   5. landing times based toggle is not implemented yet.
   6. Clicking on dagrun to take to the run page is not implemented yet.
   7. Autorefresh is not yet implemented.
   8. It seems even with limit of 14 passed more dagruns are returned. Changing 
it manually reflects correct value. Need to see if there is some cache issue.
   
   
![image](https://github.com/user-attachments/assets/762a97ba-e168-4adb-9159-a164ca99876e)
   
   
![image](https://github.com/user-attachments/assets/08ee9784-a120-4954-812c-5616c2b38102)
   


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