mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
feat(core): Implement lifecycle hooks to support streaming responses (no-changelog) (#16391)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user