Commit facdac5 1 parent 20069b5 commit facdac5 Copy full SHA for facdac5
File tree 5 files changed +60
-7
lines changed
packages/cli/src/benchmark
5 files changed +60
-7
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,9 @@ async function prepareWorkflows(owner: User) {
63
63
for ( const workflow of workflows ) {
64
64
// @ts -ignore @TODO Fix typing
65
65
await Container . get ( WorkflowsController ) . create ( { body : workflow , user : owner } ) ;
66
- await Container . get ( ActiveWorkflowRunner ) . add ( workflow . id as string , 'activate' ) ;
67
- // @TODO : Solve race condition when adding webhooks
68
66
}
67
+
68
+ await Container . get ( ActiveWorkflowRunner ) . init ( ) ;
69
69
}
70
70
71
71
let main : Start ;
Original file line number Diff line number Diff line change 26
26
} ,
27
27
) ;
28
28
29
- task ( '[first] Task 2 should do something else' , async ( ) => {
30
- console . log ( '[first] Task 2 executed' ) ;
31
- } ) ;
29
+ task (
30
+ '1.3. Production workflow with authless webhook node using "Using \'Respond to Webhook\' node" mode' ,
31
+ async ( ) => {
32
+ await client . get ( '/webhook/c143e038-b0bd-46ca-9708-33b868499c61' ) ;
33
+ } ,
34
+ ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " 1.1" ,
3
+ "active" : true ,
3
4
"nodes" : [
4
5
{
5
6
"parameters" : {
16
17
],
17
18
"pinData" : {},
18
19
"connections" : {},
19
- "active" : true ,
20
20
"settings" : {
21
21
"executionOrder" : " v1"
22
22
},
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " 1.2" ,
3
+ "active" : true ,
3
4
"nodes" : [
4
5
{
5
6
"parameters" : {
39
40
]
40
41
}
41
42
},
42
- "active" : false ,
43
43
"settings" : {
44
44
"executionOrder" : " v1"
45
45
},
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " 1.3" ,
3
+ "active" : true ,
4
+ "nodes" : [
5
+ {
6
+ "parameters" : {
7
+ "respondWith" : " text" ,
8
+ "responseBody" : " Responding from \" Respond to Webhook\" node" ,
9
+ "options" : {}
10
+ },
11
+ "id" : " 5716bed4-c3b1-40f0-b5cb-62a14e622fcb" ,
12
+ "name" : " Respond to Webhook" ,
13
+ "type" : " n8n-nodes-base.respondToWebhook" ,
14
+ "typeVersion" : 1.1 ,
15
+ "position" : [700 , 280 ]
16
+ },
17
+ {
18
+ "parameters" : {
19
+ "path" : " c143e038-b0bd-46ca-9708-33b868499c61" ,
20
+ "responseMode" : " responseNode" ,
21
+ "options" : {}
22
+ },
23
+ "id" : " 65892623-8bea-42ba-b7ed-d0298f498bce" ,
24
+ "name" : " Webhook" ,
25
+ "type" : " n8n-nodes-base.webhook" ,
26
+ "typeVersion" : 2 ,
27
+ "position" : [500 , 280 ],
28
+ "webhookId" : " c143e038-b0bd-46ca-9708-33b868499c61"
29
+ }
30
+ ],
31
+ "pinData" : {},
32
+ "connections" : {
33
+ "Webhook" : {
34
+ "main" : [
35
+ [
36
+ {
37
+ "node" : " Respond to Webhook" ,
38
+ "type" : " main" ,
39
+ "index" : 0
40
+ }
41
+ ]
42
+ ]
43
+ }
44
+ },
45
+ "settings" : {
46
+ "executionOrder" : " v1"
47
+ },
48
+ "versionId" : " 08698a35-a4e4-4630-8b3c-3949e78f8620" ,
49
+ "tags" : []
50
+ }
You can’t perform that action at this time.
0 commit comments