feat: workflow continue on error (#11474)

This commit is contained in:
zxhlyh
2024-12-11 14:21:38 +08:00
committed by GitHub
parent 86dfdcb8ec
commit bec5451f12
60 changed files with 1481 additions and 282 deletions

View File

@@ -7,6 +7,7 @@ import type {
Node,
} from '@/app/components/workflow/types'
import type { TransferMethod } from '@/types/app'
import type { ErrorHandleTypeEnum } from '@/app/components/workflow/nodes/_base/components/error-handle/types'
export type NodeTracing = {
id: string
@@ -22,7 +23,7 @@ export type NodeTracing = {
parallel_run_id?: string
error?: string
elapsed_time: number
execution_metadata: {
execution_metadata?: {
total_tokens: number
total_price: number
currency: string
@@ -34,6 +35,7 @@ export type NodeTracing = {
parent_parallel_start_node_id?: string
parallel_mode_run_id?: string
iteration_duration_map?: IterationDurationMap
error_strategy?: ErrorHandleTypeEnum
}
metadata: {
iterator_length: number
@@ -172,6 +174,7 @@ export type NodeFinishedResponse = {
iteration_index?: number
iteration_id?: string
parallel_mode_run_id: string
error_strategy?: ErrorHandleTypeEnum
}
created_at: number
files?: FileResponse[]