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

Method load_workflow_checkpoint

core/src/store/memory_store.rs:188–205  ·  view source on GitHub ↗
(
        &self,
        workflow_id: &str,
    )

Source from the content-addressed store, hash-verified

186 }
187
188 async fn load_workflow_checkpoint(
189 &self,
190 workflow_id: &str,
191 ) -> Result<Option<WorkflowCheckpoint>> {
192 match self
193 .workflow_checkpoints
194 .read()
195 .await
196 .get(workflow_id)
197 .cloned()
198 {
199 Some(cp) => {
200 cp.ensure_loadable()?;
201 Ok(Some(cp))
202 }
203 None => Ok(None),
204 }
205 }
206
207 async fn delete_workflow_checkpoint(&self, workflow_id: &str) -> Result<()> {
208 self.workflow_checkpoints.write().await.remove(workflow_id);

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
ensure_loadableMethod · 0.45

Tested by

no test coverage detected