MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / get_node_status

Method get_node_status

gateway/src/kv/mod.rs:563–568  ·  view source on GitHub ↗

Get node status

(&self, node_id: NodeId)

Source from the content-addressed store, hash-verified

561
562 /// Get node status
563 pub fn get_node_status(&self, node_id: NodeId) -> NodeStatus {
564 self.persistent
565 .read()
566 .decode(&keys::node_status(node_id))
567 .unwrap_or_default()
568 }
569
570 /// Load all node statuses
571 pub fn load_all_node_statuses(&self) -> BTreeMap<NodeId, NodeStatus> {

Callers 1

do_register_cvmMethod · 0.80

Calls 2

node_statusFunction · 0.85
decodeMethod · 0.45

Tested by

no test coverage detected