MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / resume_turn

Method resume_turn

libatomic/src/daemon/journal_sink.rs:304–320  ·  view source on GitHub ↗
(
        &self,
        session_id: &str,
        turn_number: u32,
        now: i64,
    )

Source from the content-addressed store, hash-verified

302 }
303
304 fn resume_turn(
305 &self,
306 session_id: &str,
307 turn_number: u32,
308 now: i64,
309 ) -> Result<Option<JournalTurnStatus>, String> {
310 let turn = self
311 .store()?
312 .get_provenance_turn_for(session_id, turn_number)
313 .map_err(|error| error.to_string())?;
314 let Some(turn) = turn else { return Ok(None) };
315 let resumed = self
316 .store()?
317 .resume_provenance_turn(turn.provenance_id, turn.generation, now)
318 .map_err(|error| error.to_string())?;
319 Ok(Some(to_journal_turn_status(resumed)))
320 }
321
322 fn abandon_turn(
323 &self,

Callers

nothing calls this directly

Calls 4

to_journal_turn_statusFunction · 0.85
storeMethod · 0.45

Tested by

no test coverage detected