pierrejeambrun commented on issue #63715:
URL: https://github.com/apache/airflow/issues/63715#issuecomment-4068244823

   More information on this.
   
   Since we enabled the Gantt to show All task tries: 
https://github.com/apache/airflow/pull/61058 this has some side effects.
   
   If I have a run with TI running in ~ a few minutes. And after a week, I want 
to clear the Dag. Then the Gantt chart 'time window' will be a week, to be able 
to display tries 1 and tries 2. Since tasks execution time is really small 
compare to the delay between run1 and the clear, virtually this will force all 
TIs and TIHs to have the smallest width possible, making this impossible to 
dissociate long running from short running tasks. This problem will happen for 
every dag and every run if we wait long enough between the initial run and the 
clear action.
   
   
   We do not know which TIH belongs to which `clear`, so it's no possible to 
introduce a selector there.
   
   I thought about maybe we could simply add a flag such as 'Show TaskInstance 
History' checkbox so we could decide whether or not we want to see historical 
TI in the Gantt (possibly crushing the durations) or if we should only show the 
latest tries which will belong to the same Run (most likely). That's basically 
a checkbox for enabling`https://github.com/apache/airflow/pull/61058`, by 
default True. The problem is that we could still have the same behavior if we 
clear a single TI manually.
   
   So maybe we should simply add a start date end date range filter in the 
Gantt so we can 'zoom in/out' on specific parts of the Gantt chart to be able 
to have a more precise representation if needed.


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