Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
f46f6d0e
Commit
f46f6d0e
authored
Mar 17, 2025
by
Graham King
Committed by
GitHub
Mar 17, 2025
Browse files
fix(runtime): Shutdown message from eprintln to tracing debug (#219)
parent
47e3439c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
44 deletions
+6
-44
Cargo.lock
Cargo.lock
+1
-39
launch/dynamo-run/Cargo.toml
launch/dynamo-run/Cargo.toml
+1
-1
launch/dynamo-run/src/hub.rs
launch/dynamo-run/src/hub.rs
+1
-1
lib/runtime/src/worker.rs
lib/runtime/src/worker.rs
+3
-3
No files found.
Cargo.lock
View file @
f46f6d0e
...
@@ -313,29 +313,6 @@ version = "1.4.0"
...
@@ -313,29 +313,6 @@ version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
[[package]]
name = "aws-lc-rs"
version = "1.12.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dabb68eb3a7aa08b46fddfd59a3d55c978243557a90ab804769f7e20e67d2b01"
dependencies = [
"aws-lc-sys",
"zeroize",
]
[[package]]
name = "aws-lc-sys"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6bbe221bbf523b625a4dd8585c7f38166e31167ec2ca98051dbcb4c3b6e825d2"
dependencies = [
"bindgen 0.69.5",
"cc",
"cmake",
"dunce",
"fs_extra",
]
[[package]]
[[package]]
name = "axum"
name = "axum"
version = "0.6.20"
version = "0.6.20"
...
@@ -783,7 +760,6 @@ dependencies = [
...
@@ -783,7 +760,6 @@ dependencies = [
"num_cpus",
"num_cpus",
"rand 0.8.5",
"rand 0.8.5",
"reqwest 0.12.14",
"reqwest 0.12.14",
"rustls 0.23.23",
"serde",
"serde",
"serde_json",
"serde_json",
"thiserror 1.0.69",
"thiserror 1.0.69",
...
@@ -1502,12 +1478,6 @@ dependencies = [
...
@@ -1502,12 +1478,6 @@ dependencies = [
"syn 2.0.100",
"syn 2.0.100",
]
]
[[package]]
name = "dunce"
version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
[[package]]
[[package]]
name = "dyn-clone"
name = "dyn-clone"
version = "1.0.19"
version = "1.0.19"
...
@@ -1600,13 +1570,13 @@ dependencies = [
...
@@ -1600,13 +1570,13 @@ dependencies = [
"async-openai",
"async-openai",
"async-stream",
"async-stream",
"async-trait",
"async-trait",
"candle-hf-hub",
"clap",
"clap",
"dialoguer",
"dialoguer",
"dynamo-llm",
"dynamo-llm",
"dynamo-runtime",
"dynamo-runtime",
"futures",
"futures",
"futures-util",
"futures-util",
"hf-hub",
"humantime",
"humantime",
"netlink-packet-route",
"netlink-packet-route",
"rtnetlink",
"rtnetlink",
...
@@ -2047,12 +2017,6 @@ dependencies = [
...
@@ -2047,12 +2017,6 @@ dependencies = [
"percent-encoding",
"percent-encoding",
]
]
[[package]]
name = "fs_extra"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
[[package]]
[[package]]
name = "fuchsia-zircon"
name = "fuchsia-zircon"
version = "0.3.3"
version = "0.3.3"
...
@@ -5403,7 +5367,6 @@ version = "0.23.23"
...
@@ -5403,7 +5367,6 @@ version = "0.23.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47796c98c480fce5406ef69d1c76378375492c3b0a0de587be0c1d9feb12f395"
checksum = "47796c98c480fce5406ef69d1c76378375492c3b0a0de587be0c1d9feb12f395"
dependencies = [
dependencies = [
"aws-lc-rs",
"log",
"log",
"once_cell",
"once_cell",
"ring",
"ring",
...
@@ -5481,7 +5444,6 @@ version = "0.102.8"
...
@@ -5481,7 +5444,6 @@ version = "0.102.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"
checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"
dependencies = [
dependencies = [
"aws-lc-rs",
"ring",
"ring",
"rustls-pki-types",
"rustls-pki-types",
"untrusted",
"untrusted",
...
...
launch/dynamo-run/Cargo.toml
View file @
f46f6d0e
...
@@ -51,7 +51,7 @@ tokio-util = { workspace = true }
...
@@ -51,7 +51,7 @@ tokio-util = { workspace = true }
tracing
=
{
workspace
=
true
}
tracing
=
{
workspace
=
true
}
async-openai
=
{
version
=
"0.27.2"
}
async-openai
=
{
version
=
"0.27.2"
}
candle-
hf-hub
=
{
version
=
"0.
3.3
"
,
default-features
=
false
,
features
=
[
"tokio"
,
"rustls-tls"
]
}
hf-hub
=
{
version
=
"0.
4.2
"
,
default-features
=
false
,
features
=
[
"tokio"
,
"rustls-tls"
]
}
clap
=
{
version
=
"4.5"
,
features
=
[
"derive"
,
"env"
]
}
clap
=
{
version
=
"4.5"
,
features
=
[
"derive"
,
"env"
]
}
dialoguer
=
{
version
=
"0.11"
,
default-features
=
false
,
features
=
[
"editor"
,
"history"
]
}
dialoguer
=
{
version
=
"0.11"
,
default-features
=
false
,
features
=
[
"editor"
,
"history"
]
}
futures-util
=
{
version
=
"0.3"
}
futures-util
=
{
version
=
"0.3"
}
...
...
launch/dynamo-run/src/hub.rs
View file @
f46f6d0e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// See the License for the specific language governing permissions and
// limitations under the License.
// limitations under the License.
use
candle_
hf_hub
::
api
::
tokio
::
ApiBuilder
;
use
hf_hub
::
api
::
tokio
::
ApiBuilder
;
use
std
::
path
::{
Path
,
PathBuf
};
use
std
::
path
::{
Path
,
PathBuf
};
const
IGNORED
:
[
&
str
;
3
]
=
[
".gitattributes"
,
"LICENSE"
,
"README.md"
];
const
IGNORED
:
[
&
str
;
3
]
=
[
".gitattributes"
,
"LICENSE"
,
"README.md"
];
...
...
lib/runtime/src/worker.rs
View file @
f46f6d0e
...
@@ -132,8 +132,8 @@ impl Worker {
...
@@ -132,8 +132,8 @@ impl Worker {
tokio
::
select!
{
tokio
::
select!
{
_
=
cancel_token
.cancelled
()
=>
{
_
=
cancel_token
.cancelled
()
=>
{
eprintln
!
(
"{}"
,
SHUTDOWN_MESSAGE
);
tracing
::
debug
!
(
"{}"
,
SHUTDOWN_MESSAGE
);
eprintln
!
(
"{} {} seconds"
,
SHUTDOWN_TIMEOUT_MESSAGE
,
timeout
);
tracing
::
debug
!
(
"{} {} seconds"
,
SHUTDOWN_TIMEOUT_MESSAGE
,
timeout
);
}
}
_
=
app_tx
.closed
()
=>
{
_
=
app_tx
.closed
()
=>
{
...
@@ -146,7 +146,7 @@ impl Worker {
...
@@ -146,7 +146,7 @@ impl Worker {
}
}
_
=
tokio
::
time
::
sleep
(
tokio
::
time
::
Duration
::
from_secs
(
timeout
))
=>
{
_
=
tokio
::
time
::
sleep
(
tokio
::
time
::
Duration
::
from_secs
(
timeout
))
=>
{
eprintln
!
(
"Application did not shutdown in time; terminating"
);
tracing
::
debug
!
(
"Application did not shutdown in time; terminating"
);
std
::
process
::
exit
(
911
);
std
::
process
::
exit
(
911
);
}
}
}
?
;
}
?
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment