MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / create_run

Function create_run

crates/flowtrace-core/src/state.rs:301–307  ·  view source on GitHub ↗
(trace_root: &Path, name: impl Into<String>)

Source from the content-addressed store, hash-verified

299}
300
301pub fn create_run(trace_root: &Path, name: impl Into<String>) -> Result<String> {
302 let run_id = new_run_id();
303 let dir = run_dir(trace_root, &run_id);
304 fs::create_dir_all(&dir)?;
305 write_state(trace_root, &run_id, &RunState::new(name))?;
306 Ok(run_id)
307}
308
309pub fn read_state(trace_root: &Path, run_id: &str) -> Result<RunState> {
310 let path = state_path(trace_root, run_id);

Callers 2

cmd_runFunction · 0.85
createFunction · 0.85

Calls 3

new_run_idFunction · 0.85
run_dirFunction · 0.85
write_stateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…