Skip to content

Commit

Permalink
Fetch recent dag runs using dag id instead of dag display pattern. (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi authored Dec 12, 2024
1 parent b5c7057 commit 04011f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion airflow/ui/src/pages/Dag/Dag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const Dag = () => {
data: runsData,
error: runsError,
isLoading: isLoadingRuns,
} = useDagsServiceRecentDagRuns({ dagIdPattern: dagId }, undefined, {
} = useDagsServiceRecentDagRuns({ dagIds: [dagId] }, undefined, {
enabled: Boolean(dagId),
});

Expand Down
3 changes: 1 addition & 2 deletions airflow/ui/src/pages/Dag/Tasks/Tasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ export const Tasks = () => {
dagId,
});

// TODO: Replace dagIdPattern with dagId once supported for better matching
const { data: runsData } = useDagsServiceRecentDagRuns(
{ dagIdPattern: dagId, dagRunsLimit: 14 },
{ dagIds: [dagId], dagRunsLimit: 14 },
undefined,
{
enabled: Boolean(dagId),
Expand Down

0 comments on commit 04011f3

Please sign in to comment.