-
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
ccb4b0e
3bd0436
c7e88d9
aa23084
16a7cdb
f05a09e
f72a532
547887c
7cd101c
13a38ae
5d87e83
abae681
d94c7ca
99f8794
9241826
c7b75e4
e8cbc1b
bf6ba87
cd945f0
e76bc01
dbdb833
9941d9f
89fc641
58c7fe8
ed7d87f
e34f3b8
39f87ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,13 @@ | ||
| ENVIRONMENT='development' | ||
| MODE='dynamic' | ||
|
|
||
| NATS_URL='nats://localhost:4222' | ||
| AQUILA_URL='http://localhost:8080' | ||
| AQUILA_URL='http://localhost:50051' | ||
| AQUILA_TOKEN='token' | ||
|
|
||
| WITH_HEALTH_SERVICE=false | ||
| GRPC_HOST='127.0.0.1' | ||
| GRPC_PORT=50051 | ||
| DEFINITIONS='./definitions' | ||
|
|
||
| DEFINITIONS='./definitions' | ||
| RUNTIME_STATUS_UPDATE_INTERVAL_SECONDS=30 |
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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Taurus | ||
| The heart of the execution block - the runtime itself | ||
|
|
||
| - Executes flows and handles test executions | ||
| - Requests single node executions from Actions | ||
| - Serves the standard CodeZero library | ||
|
|
||
| ## Used Technologies | ||
|
|
||
| [Rust](https://www.rust-lang.org/) x [Tonic](https://docs.rs/tonic/latest/tonic/) | ||
|
|
||
| ## Contribute / Setup | ||
| Read the [Installation Guide](https://docs.code0.tech/taurus/installation/) if you want to deploy a Taurus instance or see the [Development Guide](https://docs.code0.tech/taurus/dev/) if you want to contribute. |
| 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.