Skip to content

Commit 141d10f

Browse files
Merge pull request #90 from code0-tech/89-shutdown-on-ctrl_c
Shutdown on ctrl_c
2 parents 7d5ca86 + 677d874 commit 141d10f

File tree

6 files changed

+171
-88
lines changed

6 files changed

+171
-88
lines changed

.env-example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ NATS_URL='nats://localhost:4222'
44
AQUILA_URL='http://localhost:8080'
55
WITH_HEALTH_SERVICE=false
66
GRPC_HOST='127.0.0.1'
7-
GRPC_PORT=50051
7+
GRPC_PORT=50051
8+
DEFINITIONS='./definitions'

Cargo.lock

Lines changed: 48 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ version = "0.1.0"
77
edition = "2024"
88

99
[workspace.dependencies]
10-
code0-flow = { version = "0.0.18" }
11-
tucana = { version = "0.0.40" }
12-
tokio = { version = "1.44.1", features = ["rt-multi-thread"] }
10+
code0-flow = { version = "0.0.19" }
11+
tucana = { version = "0.0.42" }
12+
tokio = { version = "1.44.1", features = ["rt-multi-thread", "signal"] }
1313
log = "0.4.27"
1414
futures-lite = "2.6.0"
1515
rand = "0.9.1"
1616
base64 = "0.22.1"
1717
env_logger = "0.11.8"
18-
async-nats = "0.44.2"
18+
async-nats = "0.45.0"
1919
prost = "0.14.1"
2020
tonic-health = "0.14.1"
2121
tonic = "0.14.1"

taurus/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2024"
55

66
[dependencies]
7-
code0-flow = { workspace = true }
7+
code0-flow = { workspace = true, features = ["flow_service"] }
88
tucana = { workspace = true }
99
tokio = { workspace = true }
1010
log = { workspace = true }

taurus/src/config/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ pub struct Config {
2626
pub grpc_host: String,
2727

2828
pub grpc_port: u16,
29+
30+
pub definitions: String,
2931
}
3032

3133
/// Implementation for all relevant `Aquila` startup configurations
@@ -36,12 +38,13 @@ impl Config {
3638
pub fn new() -> Self {
3739
Config {
3840
environment: env_with_default("ENVIRONMENT", Environment::Development),
39-
mode: env_with_default("MODE", Mode::STATIC),
41+
mode: env_with_default("MODE", Mode::DYNAMIC),
4042
nats_url: env_with_default("NATS_URL", String::from("nats://localhost:4222")),
4143
aquila_url: env_with_default("AQUILA_URL", String::from("http://localhost:50051")),
4244
with_health_service: env_with_default("WITH_HEALTH_SERVICE", false),
4345
grpc_host: env_with_default("GRPC_HOST", "127.0.0.1".to_string()),
4446
grpc_port: env_with_default("GRPC_PORT", 50051),
47+
definitions: env_with_default("DEFINITIONS", String::from("./definitions")),
4548
}
4649
}
4750
}

0 commit comments

Comments
 (0)