From 1f537bed3a4e898e1144fec5dd1b3edd6038689a Mon Sep 17 00:00:00 2001 From: James Liu <37026441+zijianjoy@users.noreply.github.com> Date: Thu, 28 Apr 2022 13:25:30 -0700 Subject: [PATCH] feat(frontend): Automatically fetch MLMD for Run status update in V2. (#7636) --- frontend/src/pages/RunDetailsV2.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/pages/RunDetailsV2.tsx b/frontend/src/pages/RunDetailsV2.tsx index be70320b02da..e2718842d28f 100644 --- a/frontend/src/pages/RunDetailsV2.tsx +++ b/frontend/src/pages/RunDetailsV2.tsx @@ -49,6 +49,7 @@ import { statusToIcon } from './Status'; import DagCanvas from './v2/DagCanvas'; const QUERY_STALE_TIME = 10000; // 10000 milliseconds == 10 seconds. +const QUERY_REFETCH_INTERNAL = 10000; // 10000 milliseconds == 10 seconds. interface MlmdPackage { executions: Execution[]; @@ -110,6 +111,7 @@ export function RunDetailsV2(props: RunDetailsV2Props) { }, { staleTime: QUERY_STALE_TIME, + refetchInterval: QUERY_REFETCH_INTERNAL, onError: error => props.updateBanner({ message: 'Cannot get MLMD objects from Metadata store.',