Skip to content

Commit

Permalink
Add try number to mapped instance (apache#38097)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi authored and utkarsharma2 committed Apr 22, 2024
1 parent acad364 commit 3df18fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 1 addition & 5 deletions airflow/www/static/js/dag/details/task/TaskDuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import React from "react";

import useSelection from "src/dag/useSelection";
import { useGridData, useTaskFails } from "src/api";
import { useGridData } from "src/api";
import { startCase } from "lodash";
import { getDuration, formatDateTime, defaultFormat } from "src/datetime_utils";
import ReactECharts, { ReactEChartsProps } from "src/components/ReactECharts";
Expand All @@ -45,10 +45,6 @@ const TaskDuration = () => {
onSelect,
} = useSelection();

const { data: taskFails } = useTaskFails({ taskId: taskId || undefined });

console.log(taskFails);

const {
data: { dagRuns, groups, ordering },
} = useGridData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ const MappedInstances = ({ dagId, runId, taskId, onRowClicked }: Props) => {
accessor: "endDate",
disableSortBy: true,
},
{
Header: "Try Number",
accessor: "tryNumber",
disableSortBy: true,
},
],
[]
);
Expand Down

0 comments on commit 3df18fc

Please sign in to comment.