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

Method save_checkpoint

core/src/loop_checkpoint.rs:136–148  ·  view source on GitHub ↗
(&self, checkpoint: &LoopCheckpoint)

Source from the content-addressed store, hash-verified

134#[async_trait]
135impl LoopCheckpointSink for SessionStoreCheckpointSink {
136 async fn save_checkpoint(&self, checkpoint: &LoopCheckpoint) {
137 if let Err(e) = self
138 .inner
139 .save_loop_checkpoint(&checkpoint.run_id, checkpoint)
140 .await
141 {
142 tracing::warn!(
143 run_id = %checkpoint.run_id,
144 error = %e,
145 "Loop checkpoint save failed; live run continues"
146 );
147 }
148 }
149
150 async fn load_latest(&self, run_id: &str) -> Option<LoopCheckpoint> {
151 match self.inner.load_loop_checkpoint(run_id).await {

Callers 1

Calls 1

save_loop_checkpointMethod · 0.45

Tested by

no test coverage detected