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
602352ce
Commit
602352ce
authored
Mar 08, 2025
by
Neelay Shah
Committed by
GitHub
Mar 08, 2025
Browse files
chore: rename dynamo (#44)
Co-authored-by:
Biswa Panda
<
biswa.panda@gmail.com
>
parent
ecf53ce2
Changes
431
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
21 additions
and
21 deletions
+21
-21
lib/runtime/src/logging.rs
lib/runtime/src/logging.rs
+3
-3
lib/runtime/src/pipeline/context.rs
lib/runtime/src/pipeline/context.rs
+1
-1
lib/runtime/src/pipeline/registry.rs
lib/runtime/src/pipeline/registry.rs
+1
-1
lib/runtime/src/protocols.rs
lib/runtime/src/protocols.rs
+2
-2
lib/runtime/src/worker.rs
lib/runtime/src/worker.rs
+1
-1
lib/runtime/tests/common/engines.rs
lib/runtime/tests/common/engines.rs
+2
-2
lib/runtime/tests/common/mock.rs
lib/runtime/tests/common/mock.rs
+2
-2
lib/runtime/tests/lifecycle.rs
lib/runtime/tests/lifecycle.rs
+1
-1
lib/runtime/tests/pipeline.rs
lib/runtime/tests/pipeline.rs
+2
-2
lib/runtime/tests/soak.rs
lib/runtime/tests/soak.rs
+2
-2
pyproject.toml
pyproject.toml
+4
-4
No files found.
lib/runtime/src/logging.rs
View file @
602352ce
...
@@ -13,12 +13,12 @@
...
@@ -13,12 +13,12 @@
// 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.
//! Dyn
e
mo Distributed Logging Module.
//! Dyn
a
mo Distributed Logging Module.
//!
//!
//! - Configuration loaded from:
//! - Configuration loaded from:
//! 1. Environment variables (highest priority).
//! 1. Environment variables (highest priority).
//! 2. Optional TOML file pointed to by the `DYN_LOGGING_CONFIG_PATH` environment variable.
//! 2. Optional TOML file pointed to by the `DYN_LOGGING_CONFIG_PATH` environment variable.
//! 3. `/opt/dyn
e
mo/etc/logging.toml`.
//! 3. `/opt/dyn
a
mo/etc/logging.toml`.
//!
//!
//! Logging can take two forms: `READABLE` or `JSONL`. The default is `READABLE`. `JSONL`
//! Logging can take two forms: `READABLE` or `JSONL`. The default is `READABLE`. `JSONL`
//! can be enabled by setting the `DYN_LOGGING_JSONL` environment variable to `1`.
//! can be enabled by setting the `DYN_LOGGING_JSONL` environment variable to `1`.
...
@@ -155,7 +155,7 @@ fn load_config() -> LoggingConfig {
...
@@ -155,7 +155,7 @@ fn load_config() -> LoggingConfig {
let
config_path
=
std
::
env
::
var
(
CONFIG_PATH_ENV
)
.unwrap_or_else
(|
_
|
""
.to_string
());
let
config_path
=
std
::
env
::
var
(
CONFIG_PATH_ENV
)
.unwrap_or_else
(|
_
|
""
.to_string
());
let
figment
=
Figment
::
new
()
let
figment
=
Figment
::
new
()
.merge
(
Serialized
::
defaults
(
LoggingConfig
::
default
()))
.merge
(
Serialized
::
defaults
(
LoggingConfig
::
default
()))
.merge
(
Toml
::
file
(
"/opt/dyn
e
mo/etc/logging.toml"
))
.merge
(
Toml
::
file
(
"/opt/dyn
a
mo/etc/logging.toml"
))
.merge
(
Toml
::
file
(
config_path
));
.merge
(
Toml
::
file
(
config_path
));
figment
.extract
()
.unwrap
()
figment
.extract
()
.unwrap
()
...
...
lib/runtime/src/pipeline/context.rs
View file @
602352ce
...
@@ -299,7 +299,7 @@ impl<T: Send + Sync + 'static> From<Context<T>> for StreamContext {
...
@@ -299,7 +299,7 @@ impl<T: Send + Sync + 'static> From<Context<T>> for StreamContext {
}
}
}
}
// TODO - refactor here - this came from the dyn
e
mo
-
llm-async-engine crate
// TODO - refactor here - this came from the dyn
a
mo
.
llm-async-engine crate
use
tokio
::
sync
::
watch
::{
channel
,
Receiver
,
Sender
};
use
tokio
::
sync
::
watch
::{
channel
,
Receiver
,
Sender
};
...
...
lib/runtime/src/pipeline/registry.rs
View file @
602352ce
...
@@ -22,7 +22,7 @@ use std::sync::Arc;
...
@@ -22,7 +22,7 @@ use std::sync::Arc;
/// # Examples
/// # Examples
///
///
/// ```
/// ```
/// use dyn
e
mo_runtime::pipeline::registry::Registry;
/// use dyn
a
mo_runtime::pipeline::registry::Registry;
///
///
/// let mut registry = Registry::new();
/// let mut registry = Registry::new();
///
///
...
...
lib/runtime/src/protocols.rs
View file @
602352ce
...
@@ -97,7 +97,7 @@ impl From<&str> for Endpoint {
...
@@ -97,7 +97,7 @@ impl From<&str> for Endpoint {
///
///
/// # Examples
/// # Examples
/// ```ignore
/// ```ignore
/// use dyn
e
mo_runtime:protocols::Endpoint;
/// use dyn
a
mo_runtime:protocols::Endpoint;
///
///
/// let endpoint = Endpoint::from("namespace/component/endpoint");
/// let endpoint = Endpoint::from("namespace/component/endpoint");
/// assert_eq!(endpoint.namespace, "namespace");
/// assert_eq!(endpoint.namespace, "namespace");
...
@@ -152,7 +152,7 @@ impl FromStr for Endpoint {
...
@@ -152,7 +152,7 @@ impl FromStr for Endpoint {
/// # Examples
/// # Examples
/// ```ignore
/// ```ignore
/// use std::str::FromStr;
/// use std::str::FromStr;
/// use dyn
e
mo_runtime:protocols::Endpoint;
/// use dyn
a
mo_runtime:protocols::Endpoint;
///
///
/// let endpoint: Endpoint = "namespace/component/endpoint".parse().unwrap();
/// let endpoint: Endpoint = "namespace/component/endpoint".parse().unwrap();
/// assert_eq!(endpoint.namespace, "namespace");
/// assert_eq!(endpoint.namespace, "namespace");
...
...
lib/runtime/src/worker.rs
View file @
602352ce
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
//!
//!
//! In the future, the [Worker] should probably be moved to a procedural macro similar
//! In the future, the [Worker] should probably be moved to a procedural macro similar
//! to the `#[tokio::main]` attribute, where we might annotate an async main function with
//! to the `#[tokio::main]` attribute, where we might annotate an async main function with
//! `#[dyn
e
mo::main]` or similar.
//! `#[dyn
a
mo::main]` or similar.
//!
//!
//! The [Worker::execute] method is designed to be called once from main and will block
//! The [Worker::execute] method is designed to be called once from main and will block
//! the calling thread until the application completes or is canceled. The method initialized
//! the calling thread until the application completes or is canceled. The method initialized
...
...
lib/runtime/tests/common/engines.rs
View file @
602352ce
...
@@ -21,12 +21,12 @@ use async_trait::async_trait;
...
@@ -21,12 +21,12 @@ use async_trait::async_trait;
use
futures
::
Stream
;
use
futures
::
Stream
;
use
tokio
::
sync
::
mpsc
;
use
tokio
::
sync
::
mpsc
;
use
dyn
e
mo_runtime
::
engine
::{
use
dyn
a
mo_runtime
::
engine
::{
AsyncEngine
,
AsyncEngineContext
,
AsyncEngineContextProvider
,
AsyncEngineStream
,
AsyncEngine
,
AsyncEngineContext
,
AsyncEngineContextProvider
,
AsyncEngineStream
,
Data
as
DataType
,
Engine
,
EngineStream
,
Data
as
DataType
,
Engine
,
EngineStream
,
};
};
use
dyn
e
mo_runtime
::
pipeline
::{
use
dyn
a
mo_runtime
::
pipeline
::{
context
::{
Context
,
StreamContext
},
context
::{
Context
,
StreamContext
},
Error
,
ManyOut
,
SingleIn
,
Error
,
ManyOut
,
SingleIn
,
};
};
...
...
lib/runtime/tests/common/mock.rs
View file @
602352ce
...
@@ -21,8 +21,8 @@ use futures::StreamExt;
...
@@ -21,8 +21,8 @@ use futures::StreamExt;
use
serde
::{
Deserialize
,
Serialize
};
use
serde
::{
Deserialize
,
Serialize
};
use
tokio
::
sync
::
mpsc
;
use
tokio
::
sync
::
mpsc
;
use
dyn
e
mo_runtime
::
engine
::{
AsyncEngine
,
AsyncEngineContext
,
Data
,
ResponseStream
};
use
dyn
a
mo_runtime
::
engine
::{
AsyncEngine
,
AsyncEngineContext
,
Data
,
ResponseStream
};
use
dyn
e
mo_runtime
::
pipeline
::{
use
dyn
a
mo_runtime
::
pipeline
::{
context
::{
Context
,
StreamContext
},
context
::{
Context
,
StreamContext
},
Error
,
ManyOut
,
PipelineError
,
PipelineIO
,
SegmentSource
,
SingleIn
,
Error
,
ManyOut
,
PipelineError
,
PipelineIO
,
SegmentSource
,
SingleIn
,
};
};
...
...
lib/runtime/tests/lifecycle.rs
View file @
602352ce
...
@@ -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
dyn
e
mo_runtime
::{
worker
::
Worker
,
Result
,
Runtime
};
use
dyn
a
mo_runtime
::{
worker
::
Worker
,
Result
,
Runtime
};
async
fn
hello_world
(
_
runtime
:
Runtime
)
->
Result
<
()
>
{
async
fn
hello_world
(
_
runtime
:
Runtime
)
->
Result
<
()
>
{
Ok
(())
Ok
(())
...
...
lib/runtime/tests/pipeline.rs
View file @
602352ce
...
@@ -17,8 +17,8 @@ use futures::{stream, StreamExt};
...
@@ -17,8 +17,8 @@ use futures::{stream, StreamExt};
use
serde
::{
Deserialize
,
Serialize
};
use
serde
::{
Deserialize
,
Serialize
};
use
std
::{
sync
::
Arc
,
time
::
Duration
};
use
std
::{
sync
::
Arc
,
time
::
Duration
};
use
dyn
e
mo_runtime
::
engine
::
ResponseStream
;
use
dyn
a
mo_runtime
::
engine
::
ResponseStream
;
use
dyn
e
mo_runtime
::{
use
dyn
a
mo_runtime
::{
pipeline
::{
pipeline
::{
async_trait
,
AsyncEngine
,
Data
,
Event
,
ManyOut
,
Operator
,
ServiceBackend
,
ServiceEngine
,
async_trait
,
AsyncEngine
,
Data
,
Event
,
ManyOut
,
Operator
,
ServiceBackend
,
ServiceEngine
,
ServiceFrontend
,
SingleIn
,
*
,
ServiceFrontend
,
SingleIn
,
*
,
...
...
lib/runtime/tests/soak.rs
View file @
602352ce
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
#[cfg(feature
=
"integration"
)]
#[cfg(feature
=
"integration"
)]
mod
integration
{
mod
integration
{
pub
const
DEFAULT_NAMESPACE
:
&
str
=
"dyn
e
mo"
;
pub
const
DEFAULT_NAMESPACE
:
&
str
=
"dyn
a
mo"
;
use
dyn
e
mo_runtime
::{
use
dyn
a
mo_runtime
::{
logging
,
logging
,
pipeline
::{
pipeline
::{
async_trait
,
network
::
Ingress
,
AsyncEngine
,
AsyncEngineContextProvider
,
Error
,
ManyOut
,
async_trait
,
network
::
Ingress
,
AsyncEngine
,
AsyncEngineContextProvider
,
Error
,
ManyOut
,
...
...
pyproject.toml
View file @
602352ce
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# limitations under the License.
# limitations under the License.
[project]
[project]
name
=
"dyn
e
mo"
name
=
"dyn
a
mo"
version
=
"0.2.1"
version
=
"0.2.1"
description
=
"Distributed Inference Framework"
description
=
"Distributed Inference Framework"
readme
=
"README.md"
readme
=
"README.md"
...
@@ -30,11 +30,11 @@ dependencies = [
...
@@ -30,11 +30,11 @@ dependencies = [
]
]
[tool.maturin]
[tool.maturin]
module-name
=
"dyn
e
mo._core"
module-name
=
"dyn
a
mo._core"
# Point to the Rust crate directory
# Point to the Rust crate directory
manifest-path
=
"lib/bindings/python/Cargo.toml"
manifest-path
=
"lib/bindings/python/Cargo.toml"
# Include all Python packages
# Include all Python packages
python-packages
=
["dyn
e
mo"]
python-packages
=
["dyn
a
mo"]
# Specify the Python source directory
# Specify the Python source directory
python-source
=
"lib/bindings/python/src"
python-source
=
"lib/bindings/python/src"
...
@@ -73,7 +73,7 @@ line_length = 88
...
@@ -73,7 +73,7 @@ line_length = 88
balanced_wrapping
=
true
balanced_wrapping
=
true
indent
=
" "
indent
=
" "
skip
=
["build"]
skip
=
["build"]
known_first_party
=
["dyn
e
mo"]
known_first_party
=
["dyn
a
mo"]
[tool.pytest.ini_options]
[tool.pytest.ini_options]
minversion
=
"8.0"
minversion
=
"8.0"
...
...
Prev
1
…
18
19
20
21
22
Next
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