Skip to content

Commit

Permalink
feat(frontend): Automatically fetch MLMD for Run status update in V2. (
Browse files Browse the repository at this point in the history
  • Loading branch information
zijianjoy authored and Jagadeesh J committed May 11, 2022
1 parent 6838a33 commit db1bb18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/pages/RunDetailsV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -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.',
Expand Down

0 comments on commit db1bb18

Please sign in to comment.