|
1 | 1 | mod worker; |
2 | 2 |
|
3 | | -use std::sync::Arc; |
4 | | -use std::time::Duration; |
5 | | - |
6 | 3 | use code0_flow::flow_config::load_env_file; |
7 | 4 | use code0_flow::flow_config::mode::Mode::DYNAMIC; |
8 | 5 | use code0_flow::flow_service::FlowUpdateService; |
| 6 | +use std::sync::Arc; |
| 7 | +use std::time::Duration; |
9 | 8 | use taurus_core::runtime::engine::ExecutionEngine; |
10 | 9 | use taurus_provider::providers::emitter::nats_emitter::NATSRespondEmitter; |
11 | 10 | use taurus_provider::providers::remote::nats_remote_runtime::NATSRemoteRuntime; |
12 | 11 | use tokio::signal; |
13 | 12 | use tokio::task::JoinHandle; |
14 | 13 | use tokio::time::sleep; |
15 | 14 | use tonic_health::pb::health_server::HealthServer; |
16 | | -use tucana::shared::{RuntimeFeature, Translation}; |
17 | 15 |
|
18 | 16 | use crate::client::runtime_status::TaurusRuntimeStatusService; |
19 | 17 | use crate::client::runtime_usage::TaurusRuntimeUsageService; |
@@ -124,7 +122,6 @@ async fn setup_dynamic_services_if_needed( |
124 | 122 | config.aquila_url.clone(), |
125 | 123 | config.aquila_token.clone(), |
126 | 124 | "taurus".into(), |
127 | | - runtime_features(), |
128 | 125 | ) |
129 | 126 | .await, |
130 | 127 | )); |
@@ -152,7 +149,9 @@ async fn setup_dynamic_services_if_needed( |
152 | 149 | loop { |
153 | 150 | interval.tick().await; |
154 | 151 | status_service |
155 | | - .update_runtime_status(tucana::shared::execution_runtime_status::Status::Running) |
| 152 | + .update_runtime_status( |
| 153 | + tucana::shared::execution_runtime_status::Status::Running, |
| 154 | + ) |
156 | 155 | .await; |
157 | 156 | } |
158 | 157 | }); |
@@ -198,19 +197,6 @@ async fn push_definitions_until_success(config: &Config) { |
198 | 197 | } |
199 | 198 | } |
200 | 199 |
|
201 | | -fn runtime_features() -> Vec<RuntimeFeature> { |
202 | | - vec![RuntimeFeature { |
203 | | - name: vec![Translation { |
204 | | - code: "en-US".to_string(), |
205 | | - content: "Runtime".to_string(), |
206 | | - }], |
207 | | - description: vec![Translation { |
208 | | - code: "en-US".to_string(), |
209 | | - content: "Will execute incoming flows.".to_string(), |
210 | | - }], |
211 | | - }] |
212 | | -} |
213 | | - |
214 | 200 | async fn update_stopped_status(runtime_status_service: Option<&Arc<TaurusRuntimeStatusService>>) { |
215 | 201 | if let Some(status_service) = runtime_status_service { |
216 | 202 | status_service |
|
0 commit comments