Skip to content

Commit

Permalink
Merge branch 'feat/workflow-continue-on-error' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhlyh committed Dec 6, 2024
2 parents f33c02b + daa72a6 commit e90c41f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/app/components/workflow/run/meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ const MetaData: FC<Props> = ({
{status === 'partial-succeeded' && (
<span>PARTIAL SUCCESS</span>
)}
{status === 'exception' && (
<span>EXCEPTION</span>
)}
{status === 'failed' && (
<span>FAIL</span>
)}
Expand Down
4 changes: 4 additions & 0 deletions web/app/components/workflow/run/result-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import StatusPanel from './status'
import MetaData from './meta'
import CodeEditor from '@/app/components/workflow/nodes/_base/components/editor/code-editor'
import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'
import ErrorHandleTip from '@/app/components/workflow/nodes/_base/components/error-handle/error-handle-tip'

type ResultPanelProps = {
inputs?: string
Expand All @@ -20,6 +21,7 @@ type ResultPanelProps = {
steps?: number
showSteps?: boolean
exceptionCounts?: number
execution_metadata?: any
}

const ResultPanel: FC<ResultPanelProps> = ({
Expand All @@ -35,6 +37,7 @@ const ResultPanel: FC<ResultPanelProps> = ({
steps,
showSteps,
exceptionCounts,
execution_metadata,
}) => {
const { t } = useTranslation()
return (
Expand Down Expand Up @@ -72,6 +75,7 @@ const ResultPanel: FC<ResultPanelProps> = ({
language={CodeLanguage.json}
value={outputs}
isJSONStringifyBeauty
tip={<ErrorHandleTip type={execution_metadata?.error_strategy} />}
/>
)}
</div>
Expand Down

0 comments on commit e90c41f

Please sign in to comment.