refactor(core): Revamp crash recovery mechanism for main mode (#9613)

This commit is contained in:
Iván Ovejero
2024-06-07 16:19:59 +02:00
committed by GitHub
parent 291d46af15
commit b8338e3610
10 changed files with 648 additions and 223 deletions

View File

@@ -0,0 +1,12 @@
import type { INode } from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
export class NodeCrashedError extends NodeOperationError {
constructor(node: INode) {
super(node, 'Node crashed, possible out-of-memory issue', {
message: 'Execution stopped at this node',
description:
"n8n may have run out of memory while running this execution. More context and tips on how to avoid this <a href='https://docs.n8n.io/hosting/scaling/memory-errors/' target='_blank'>in the docs</a>",
});
}
}