feat(core): Implement lifecycle hooks to support streaming responses (no-changelog) (#16391)

This commit is contained in:
Benjamin Schroth
2025-06-24 15:38:03 +02:00
committed by GitHub
parent c4a50df824
commit 1086914080
19 changed files with 752 additions and 11 deletions

View File

@@ -1679,6 +1679,11 @@ export class WorkflowExecute {
taskData.error = executionError;
taskData.executionStatus = 'error';
// Send error to the response if necessary
await hooks?.runHook('sendChunk', [
{ type: 'error', content: executionError.description },
]);
if (
executionData.node.continueOnFail === true ||
['continueRegularOutput', 'continueErrorOutput'].includes(