Skip to content

Commit 5013ee0

Browse files
committed
feat: split action execution result into error and success
1 parent 3daf96c commit 5013ee0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

proto/aquila/aquila.action.proto

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,20 @@ message ExecutionRequest {
3737
int64 project_id = 4;
3838
}
3939

40+
message ActionRuntimeError {
41+
string code = 1;
42+
optional string description = 2;
43+
}
44+
4045
// Result from executed flows by an action
4146
message ExecutionResult {
4247
// Identifier of flow to execute
4348
string execution_identifier = 1;
4449
// Result of executed flow
45-
shared.Value result = 2;
50+
oneof result {
51+
shared.Value success = 2;
52+
ActionRuntimeError error = 3;
53+
}
4654
}
4755

4856
message TransferRequest {

0 commit comments

Comments
 (0)