pub struct ModelDeploymentTracker { /* private fields */ }Expand description
Tracks which model versions are deployed on which nodes
Implementations§
Source§impl ModelDeploymentTracker
impl ModelDeploymentTracker
Sourcepub async fn update_node_status(&self, status: NodeModelStatus)
pub async fn update_node_status(&self, status: NodeModelStatus)
Update node’s model status
Sourcepub async fn get_node_status(
&self,
model_id: &str,
node_id: &str,
) -> Option<NodeModelStatus>
pub async fn get_node_status( &self, model_id: &str, node_id: &str, ) -> Option<NodeModelStatus>
Get status for a specific node and model
Sourcepub async fn get_nodes_with_version(
&self,
model_id: &str,
version: &str,
) -> Vec<NodeModelStatus>
pub async fn get_nodes_with_version( &self, model_id: &str, version: &str, ) -> Vec<NodeModelStatus>
Get all nodes with a specific model version
Sourcepub async fn register_distribution(&self, handle: ModelDistributionHandle)
pub async fn register_distribution(&self, handle: ModelDistributionHandle)
Register an active distribution
Sourcepub async fn get_distribution(
&self,
distribution_id: &str,
) -> Option<ModelDistributionHandle>
pub async fn get_distribution( &self, distribution_id: &str, ) -> Option<ModelDistributionHandle>
Get active distribution by ID
Sourcepub async fn complete_distribution(&self, distribution_id: &str)
pub async fn complete_distribution(&self, distribution_id: &str)
Remove completed distribution
Sourcepub async fn calculate_convergence(
&self,
model_id: &str,
target_version: &str,
total_platforms: usize,
) -> ModelConvergenceStatus
pub async fn calculate_convergence( &self, model_id: &str, target_version: &str, total_platforms: usize, ) -> ModelConvergenceStatus
Calculate convergence status for a model version
Trait Implementations§
Source§impl Debug for ModelDeploymentTracker
impl Debug for ModelDeploymentTracker
Source§impl Default for ModelDeploymentTracker
impl Default for ModelDeploymentTracker
Source§fn default() -> ModelDeploymentTracker
fn default() -> ModelDeploymentTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ModelDeploymentTracker
impl !RefUnwindSafe for ModelDeploymentTracker
impl Send for ModelDeploymentTracker
impl Sync for ModelDeploymentTracker
impl Unpin for ModelDeploymentTracker
impl UnsafeUnpin for ModelDeploymentTracker
impl !UnwindSafe for ModelDeploymentTracker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more