Skip to content

Commit

Permalink
feat: mark memoized node as cached
Browse files Browse the repository at this point in the history
Signed-off-by: MenD32 <[email protected]>
  • Loading branch information
MenD32 committed Nov 8, 2024
1 parent f470fda commit fd44dd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ui/src/workflows/components/workflow-dag/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export const icons: {[key: string]: Icon} = {
Running: 'circle-notch',
Skipped: 'forward',
Succeeded: 'check',
Suspended: 'pause'
Suspended: 'pause',
Memoized: 'database'
};
4 changes: 3 additions & 1 deletion ui/src/workflows/components/workflow-dag/workflow-dag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ export class WorkflowDag extends React.Component<WorkflowDagProps, WorkflowDagRe
label = n.templateName ? `${n.templateName}:${label}` : label;
}

let icon = n.memoizationStatus.hit ? icons['Memoized'] : icons[phase] || icons.Pending;

return {
label,
genre: n.type,
icon: icons[phase] || icons.Pending,
icon: icon,
progress: phase === 'Running' && progress(n),
classNames: phase,
tags: new Set([getNodeLabelTemplateName(n)])
Expand Down

0 comments on commit fd44dd5

Please sign in to comment.