Skip to content

Commit 73fece2

Browse files
authored
Merge pull request #281 from code0-tech/feat/#278
Adding execution result to be able to retrieve such information from the frontend
2 parents ee7f3e7 + 62ece19 commit 73fece2

2 files changed

Lines changed: 51 additions & 6 deletions

File tree

proto/aquila/aquila.action.proto

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ option ruby_package = "Tucana::Aquila";
55
package aquila;
66

77
import "shared.action_configuration.proto";
8+
import "shared.execution_result.proto";
89
import "shared.struct.proto";
910

1011
// Event that gets admitted by an action
@@ -37,19 +38,14 @@ message ExecutionRequest {
3738
int64 project_id = 4;
3839
}
3940

40-
message ActionRuntimeError {
41-
string code = 1;
42-
optional string description = 2;
43-
}
44-
4541
// Result from executed flows by an action
4642
message ExecutionResult {
4743
// Identifier of flow to execute
4844
string execution_identifier = 1;
4945
// Result of executed flow
5046
oneof result {
5147
shared.Value success = 2;
52-
ActionRuntimeError error = 3;
48+
shared.RuntimeError error = 3;
5349
}
5450
}
5551

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
syntax = "proto3";
2+
3+
package shared;
4+
5+
option ruby_package = "Tucana::Shared";
6+
7+
import "shared.struct.proto";
8+
9+
message NodeParameterNodeExecutionResult {
10+
shared.Value value = 5;
11+
}
12+
13+
message RuntimeError {
14+
string code = 1;
15+
optional string description = 2;
16+
}
17+
18+
message NodeExecutionResult {
19+
20+
int64 node_id = 1;
21+
int64 started_at = 2;
22+
int64 finished_at = 3;
23+
24+
repeated NodeParameterNodeExecutionResult parameter_results = 4;
25+
26+
oneof result {
27+
shared.Value success = 5;
28+
RuntimeError error = 6;
29+
}
30+
31+
}
32+
33+
message ExecutionResult {
34+
35+
string execution_identifier = 1;
36+
int64 flow_id = 2;
37+
int64 started_at = 3;
38+
int64 finished_at = 4;
39+
shared.Value input = 5;
40+
41+
repeated NodeExecutionResult node_execution_results = 6;
42+
43+
// Result of executed flow
44+
oneof result {
45+
shared.Value success = 7;
46+
RuntimeError error = 8;
47+
}
48+
49+
}

0 commit comments

Comments
 (0)