-
Notifications
You must be signed in to change notification settings - Fork 0
new module structure #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
new module structure #190
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -181,6 +181,7 @@ mod tests { | |
| value: Some(NodeValue { | ||
| value: Some(node_value::Value::LiteralValue(value)), | ||
| }), | ||
| cast: None, | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -189,8 +190,11 @@ mod tests { | |
| database_id, | ||
| runtime_parameter_id: runtime_parameter_id.to_string(), | ||
| value: Some(NodeValue { | ||
| value: Some(node_value::Value::NodeFunctionId(node_id)), | ||
| value: Some(node_value::Value::SubFlow(unimplemented!( | ||
| "Taurus needs to handle SubFlows (issue nr #184)" | ||
| ))), | ||
|
Comment on lines
192
to
+195
|
||
| }), | ||
| cast: None, | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -208,6 +212,7 @@ mod tests { | |
| paths: Vec::new(), | ||
| })), | ||
| }), | ||
| cast: None, | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -276,6 +281,7 @@ mod tests { | |
| paths: Vec::new(), | ||
| })), | ||
| }), | ||
| cast: None, | ||
| } | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,7 @@ use prost::Message; | |||||||||||||
| use taurus_core::runtime::remote::{RemoteExecution, RemoteRuntime}; | ||||||||||||||
| use taurus_core::types::errors::runtime_error::RuntimeError; | ||||||||||||||
| use tonic::async_trait; | ||||||||||||||
| use tucana::aquila::ExecutionResult; | ||||||||||||||
| use tucana::aquila::ActionExecutionResponse; | ||||||||||||||
| use tucana::shared::Value; | ||||||||||||||
|
|
||||||||||||||
| pub struct NATSRemoteRuntime { | ||||||||||||||
|
|
@@ -42,8 +42,8 @@ impl RemoteRuntime for NATSRemoteRuntime { | |||||||||||||
| } | ||||||||||||||
| }; | ||||||||||||||
|
|
||||||||||||||
| let decode_result = ExecutionResult::decode(message.payload); | ||||||||||||||
| let execution_result = match decode_result { | ||||||||||||||
| let decode_result = ActionExecutionResponse::decode(message.payload); | ||||||||||||||
| let _execution_result = match decode_result { | ||||||||||||||
| Ok(r) => r, | ||||||||||||||
|
Comment on lines
+45
to
47
|
||||||||||||||
| Err(err) => { | ||||||||||||||
| log::error!( | ||||||||||||||
|
|
@@ -58,24 +58,6 @@ impl RemoteRuntime for NATSRemoteRuntime { | |||||||||||||
| } | ||||||||||||||
| }; | ||||||||||||||
|
|
||||||||||||||
| match execution_result.result { | ||||||||||||||
| Some(result) => match result { | ||||||||||||||
| tucana::aquila::execution_result::Result::Success(value) => Ok(value), | ||||||||||||||
| tucana::aquila::execution_result::Result::Error(err) => { | ||||||||||||||
| let code = err.code.to_string(); | ||||||||||||||
| let description = match err.description { | ||||||||||||||
| Some(string) => string, | ||||||||||||||
| None => "Unknown Error".to_string(), | ||||||||||||||
| }; | ||||||||||||||
| let error = RuntimeError::new(code, "RemoteExecutionError", description); | ||||||||||||||
| Err(error) | ||||||||||||||
| } | ||||||||||||||
| }, | ||||||||||||||
| None => Err(RuntimeError::new( | ||||||||||||||
| "T-PROV-000003", | ||||||||||||||
| "RemoteRuntimeExeption", | ||||||||||||||
| "Result of Remote Response was empty.", | ||||||||||||||
| )), | ||||||||||||||
| } | ||||||||||||||
| unimplemented!("Taurus needs to handle text executions (issue nr #185)") | ||||||||||||||
|
||||||||||||||
| unimplemented!("Taurus needs to handle text executions (issue nr #185)") | |
| Err(RuntimeError::new( | |
| "T-PROV-000003", | |
| "RemoteRuntimeUnsupportedResponse", | |
| "Remote runtime response handling is not implemented for this execution type.", | |
| )) |
Uh oh!
There was an error while loading. Please reload this page.