-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow workflow execution even if it has errors
Backend does execute the workflow up to the node(s) that have issues. That way the workflow can be partially tested even if it's e.g. missing credentials.
- Loading branch information
Showing
5 changed files
with
162 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
cypress/fixtures/Test_workflow_partial_execution_with_missing_credentials.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"meta": { | ||
"templateCredsSetupCompleted": true, | ||
"instanceId": "2be09fdcb9594c0827fd4cee80f7e590c93297d9217685f34c2250fe3144ef0c" | ||
}, | ||
"nodes": [ | ||
{ | ||
"parameters": {}, | ||
"id": "09e4325e-ede1-40cf-a1ba-58612bbc7f1b", | ||
"name": "When clicking \"Test workflow\"", | ||
"type": "n8n-nodes-base.manualTrigger", | ||
"typeVersion": 1, | ||
"position": [ | ||
820, | ||
400 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"category": "randomData" | ||
}, | ||
"id": "4920bf3a-9978-4196-9dcb-8c2892e5641b", | ||
"name": "DebugHelper", | ||
"type": "n8n-nodes-base.debugHelper", | ||
"typeVersion": 1, | ||
"position": [ | ||
1040, | ||
400 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"conditions": { | ||
"options": { | ||
"caseSensitive": true, | ||
"leftValue": "", | ||
"typeValidation": "strict" | ||
}, | ||
"conditions": [ | ||
{ | ||
"id": "7508343e-3e99-4d12-96e4-00a35a3d4306", | ||
"leftValue": "={{ $json.email }}", | ||
"rightValue": ".", | ||
"operator": { | ||
"type": "string", | ||
"operation": "contains" | ||
} | ||
} | ||
], | ||
"combinator": "and" | ||
}, | ||
"options": {} | ||
}, | ||
"id": "4f6a6a4e-19b6-43f5-ba5c-e40b09d7f873", | ||
"name": "Filter", | ||
"type": "n8n-nodes-base.filter", | ||
"typeVersion": 2, | ||
"position": [ | ||
1260, | ||
400 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"chatId": "123123", | ||
"text": "1123123", | ||
"additionalFields": {} | ||
}, | ||
"id": "1765f352-fc12-4fab-9c24-d666a150266f", | ||
"name": "Telegram", | ||
"type": "n8n-nodes-base.telegram", | ||
"typeVersion": 1.1, | ||
"position": [ | ||
1480, | ||
400 | ||
] | ||
} | ||
], | ||
"connections": { | ||
"When clicking \"Test workflow\"": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "DebugHelper", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
}, | ||
"DebugHelper": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Filter", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
}, | ||
"Filter": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Telegram", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
} | ||
}, | ||
"pinData": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters