Skip to content

Commit

Permalink
Fix incorrect data provided to tries & landing times charts (#21928)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c57ad4)
  • Loading branch information
millin authored and ephraimbuddy committed Mar 22, 2022
1 parent 79484f9 commit 4a12aa3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2727,6 +2727,8 @@ def tries(self, session=None):
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.
Expand Down Expand Up @@ -2802,6 +2804,8 @@ def landing_times(self, session=None):
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)
Expand Down

0 comments on commit 4a12aa3

Please sign in to comment.