MCPcopy Create free account
hub / github.com/AI45Lab/Code / delete_workflow_checkpoint

Method delete_workflow_checkpoint

core/src/store/file_store.rs:571–583  ·  view source on GitHub ↗
(&self, workflow_id: &str)

Source from the content-addressed store, hash-verified

569 }
570
571 async fn delete_workflow_checkpoint(&self, workflow_id: &str) -> Result<()> {
572 let path = self.workflow_checkpoint_path(workflow_id);
573 if path.exists() {
574 fs::remove_file(&path).await.with_context(|| {
575 format!(
576 "Failed to delete workflow checkpoint for {}: {}",
577 workflow_id,
578 path.display()
579 )
580 })?;
581 }
582 Ok(())
583 }
584
585 async fn health_check(&self) -> Result<()> {
586 // Verify directory exists and is writable

Calls 3

with_contextMethod · 0.80
existsMethod · 0.45