This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-2-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 30fad7f318126d6e2c1a0fe8f688dc197163df79 Author: Alexander Millin <[email protected]> AuthorDate: Wed Mar 2 13:29:07 2022 +0300 Fix incorrect data provided to tries & landing times charts (#21928) (cherry picked from commit 2c57ad4ff9ddde8102c62f2e25c2a2e82cceb3e7) --- airflow/www/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airflow/www/views.py b/airflow/www/views.py index 9ebe899..9fc61b5 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -2727,6 +2727,8 @@ class Airflow(AirflowBaseView): y_points = [] x_points = [] for ti in tis: + if ti.task_id != task.task_id: + continue dttm = wwwutils.epoch(ti.execution_date) x_points.append(dttm) # y value should reflect completed tries to have a 0 baseline. @@ -2802,6 +2804,8 @@ class Airflow(AirflowBaseView): y_points[task_id] = [] x_points[task_id] = [] for ti in tis: + if ti.task_id != task.task_id: + continue ts = dag.get_run_data_interval(ti.dag_run).end if ti.end_date: dttm = wwwutils.epoch(ti.execution_date)
