Browse Source

fix: loop and interation node not showing tracing entry in chatflow (#17500)

tags/1.2.0
GeorgeCaoJ 6 months ago
parent
commit
0998b01321
No account linked to committer's email address
1 changed files with 0 additions and 9 deletions
  1. 0
    9
      web/app/components/workflow/panel/debug-and-preview/hooks.ts

+ 0
- 9
web/app/components/workflow/panel/debug-and-preview/hooks.ts View File

} }
}, },
onNodeStarted: ({ data }) => { onNodeStarted: ({ data }) => {
if (data.iteration_id || data.loop_id)
return

responseItem.workflowProcess!.tracing!.push({ responseItem.workflowProcess!.tracing!.push({
...data, ...data,
status: NodeRunningStatus.Running, status: NodeRunningStatus.Running,
}) })
}, },
onNodeRetry: ({ data }) => { onNodeRetry: ({ data }) => {
if (data.iteration_id || data.loop_id)
return

responseItem.workflowProcess!.tracing!.push(data) responseItem.workflowProcess!.tracing!.push(data)


updateCurrentQAOnTree({ updateCurrentQAOnTree({
}) })
}, },
onNodeFinished: ({ data }) => { onNodeFinished: ({ data }) => {
if (data.iteration_id || data.loop_id)
return

const currentTracingIndex = responseItem.workflowProcess!.tracing!.findIndex(item => item.id === data.id) const currentTracingIndex = responseItem.workflowProcess!.tracing!.findIndex(item => item.id === data.id)
if (currentTracingIndex > -1) { if (currentTracingIndex > -1) {
responseItem.workflowProcess!.tracing[currentTracingIndex] = { responseItem.workflowProcess!.tracing[currentTracingIndex] = {

Loading…
Cancel
Save