Skip to main content

read_run

Function read_run 

Source
pub fn read_run(volume_root: &Path, run_id: &str) -> Result<Vec<Event>, Error>
Expand description

Read every event in one run’s events.jsonl, in order.

Opens the file fresh (not via a live EventLog), so it is safe to call from omne status while a writer is still running — the reader sees a snapshot of events already flushed to disk. A malformed line returns Error::Deserialize with the 1-based line number for the first bad record.