mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 21:37:32 -08:00
⚡ Do not call Error-Workflow in manual-mode
This commit is contained in:
parent
9c2e19d953
commit
85e8714c05
|
@ -38,6 +38,11 @@ import * as config from '../config';
|
|||
* @param {string} [executionId] The id the execution got saved as
|
||||
*/
|
||||
function executeErrorWorkflow(workflowData: IWorkflowBase, fullRunData: IRun, mode: WorkflowExecuteMode, executionId?: string, retryOf?: string): void {
|
||||
if (mode === 'manual') {
|
||||
// Do not call error workflow when executed manually
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if there was an error and if so if an errorWorkflow is set
|
||||
if (fullRunData.data.resultData.error !== undefined && workflowData.settings !== undefined && workflowData.settings.errorWorkflow) {
|
||||
const workflowErrorData = {
|
||||
|
|
Loading…
Reference in a new issue