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
  • Loading branch information
millin authored Mar 2, 2022
1 parent b2fa135 commit 2c57ad4
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 @@ -2907,6 +2907,8 @@ def tries(self, dag_id, 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 @@ -2998,6 +3000,8 @@ def landing_times(self, dag_id, 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 2c57ad4

Please sign in to comment.