diff --git a/packages/console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions.tsx b/packages/console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions.tsx index 8fd46e07d..30805a31d 100644 --- a/packages/console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions.tsx +++ b/packages/console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions.tsx @@ -163,7 +163,6 @@ export const ExecutionDetailsActions = ({ variant="outlined" color="primary" onClick={() => setShowDeck(true)} - disabled={phase !== NodeExecutionPhase.SUCCEEDED} > {text?.flyteDeckText || t('flyteDeck')} diff --git a/packages/console/src/components/Executions/ExecutionDetails/ExecutionNodeDeck.tsx b/packages/console/src/components/Executions/ExecutionDetails/ExecutionNodeDeck.tsx index 2a389fd2c..41c2fb730 100644 --- a/packages/console/src/components/Executions/ExecutionDetails/ExecutionNodeDeck.tsx +++ b/packages/console/src/components/Executions/ExecutionDetails/ExecutionNodeDeck.tsx @@ -2,6 +2,7 @@ import { useDownloadLink } from 'components/hooks/useDataProxy'; import { WaitForData } from 'components/common/WaitForData'; import * as React from 'react'; import { Core } from '@flyteorg/flyteidl-types'; +import { NotFoundError } from 'errors/fetchErrors'; /** Fetches and renders the deck data for a given `nodeExecutionId` */ export const ExecutionNodeDeck: React.FC<{ @@ -10,6 +11,22 @@ export const ExecutionNodeDeck: React.FC<{ }> = ({ nodeExecutionId, className = '' }) => { const downloadLink = useDownloadLink(nodeExecutionId); + if (downloadLink?.lastError instanceof NotFoundError) { + return ( +
+ If you're using the real-time deck, it's because the 'persist' + function has not been invoked yet. +
++ If you're not using the real-time deck, it's because the corresponding + task is still in progress. +
+