fix: update progress callback and event types for workflow execution
Deploy Development / deploy (push) Successful in 56s
Build Test / pytest-backend (push) Successful in 4s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 16s

- Changed progress callback from "execution_complete" to "workflow_graph_finished" to provide intermediate updates.
- Updated documentation to clarify the distinction between "workflow_graph_finished" and "execution_complete".
- Adjusted frontend API handling to accommodate new event structure and ensure proper result serialization.
This commit is contained in:
Lars committed 2026-04-18 09:11:07 +02:00
1 parent a002781ef9
commit 0ad3ddd627
3 files changed
+30 -14

No files matched your search

+10 -11
View File
@@ -512,18 +512,17 @@ export const api = {
onProgress(data)
}
// Check for final result
// Check for final result (/execute-stream liefert volles POST-/execute-Payload unter result)
if (data.type === 'execution_complete') {
// Transform SSE result to match regular execute format
finalResult = {
type: 'workflow',
execution_id: data.execution_id,
status: data.status,
aggregated_result: data.aggregated_result,
debug: {
node_states: [] // TODO: collect from progress events if needed
}
}
finalResult = data.result
? data.result
: {
type: 'workflow',
execution_id: data.execution_id,
status: data.status,
aggregated_result: data.aggregated_result,
debug: { node_states: [] },
}
eventSource.close()
resolve(finalResult)
} else if (data.type === 'execution_failed') {