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

Method set_node_status

gateway/src/kv/mod.rs:555–560  ·  view source on GitHub ↗

Set node status (stored separately from NodeData)

(&self, node_id: NodeId, status: NodeStatus)

Source from the content-addressed store, hash-verified

553
554 /// Set node status (stored separately from NodeData)
555 pub fn set_node_status(&self, node_id: NodeId, status: NodeStatus) -> Result<()> {
556 self.persistent
557 .write()
558 .put_encoded(keys::node_status(node_id), &status)?;
559 Ok(())
560 }
561
562 /// Get node status
563 pub fn get_node_status(&self, node_id: NodeId) -> NodeStatus {

Callers 1

newMethod · 0.45

Calls 3

node_statusFunction · 0.85
put_encodedMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected