This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 04011f329ea Fetch recent dag runs using dag id instead of dag display
pattern. (#44861)
04011f329ea is described below
commit 04011f329ea006abdfa2d7c644eff1b10c9dc27b
Author: Karthikeyan Singaravelan <[email protected]>
AuthorDate: Thu Dec 12 09:59:29 2024 +0530
Fetch recent dag runs using dag id instead of dag display pattern. (#44861)
---
airflow/ui/src/pages/Dag/Dag.tsx | 2 +-
airflow/ui/src/pages/Dag/Tasks/Tasks.tsx | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/airflow/ui/src/pages/Dag/Dag.tsx b/airflow/ui/src/pages/Dag/Dag.tsx
index 87283b077d1..03f1b17df07 100644
--- a/airflow/ui/src/pages/Dag/Dag.tsx
+++ b/airflow/ui/src/pages/Dag/Dag.tsx
@@ -50,7 +50,7 @@ export const Dag = () => {
data: runsData,
error: runsError,
isLoading: isLoadingRuns,
- } = useDagsServiceRecentDagRuns({ dagIdPattern: dagId }, undefined, {
+ } = useDagsServiceRecentDagRuns({ dagIds: [dagId] }, undefined, {
enabled: Boolean(dagId),
});
diff --git a/airflow/ui/src/pages/Dag/Tasks/Tasks.tsx
b/airflow/ui/src/pages/Dag/Tasks/Tasks.tsx
index 4b76110099e..cfc4eb3f2fb 100644
--- a/airflow/ui/src/pages/Dag/Tasks/Tasks.tsx
+++ b/airflow/ui/src/pages/Dag/Tasks/Tasks.tsx
@@ -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),