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

Method sync_instance

gateway/src/kv/mod.rs:500–504  ·  view source on GitHub ↗

Sync instance data to other nodes

(&self, instance_id: &str, data: &InstanceData)

Source from the content-addressed store, hash-verified

498
499 /// Sync instance data to other nodes
500 pub fn sync_instance(&self, instance_id: &str, data: &InstanceData) -> Result<()> {
501 self.persistent
502 .write()
503 .put_encoded(keys::inst(instance_id), data)
504 }
505
506 /// Sync instance deletion to other nodes
507 pub fn sync_delete_instance(&self, instance_id: &str) -> Result<()> {

Callers 3

new_client_by_idMethod · 0.80
add_instanceMethod · 0.80

Calls 3

instFunction · 0.85
put_encodedMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected