Skip to main content

scientific_workflow/
persistence.rs

1//! Automatic durable member recordings and program workspaces.
2//!
3//! Ordinary applications configure persistence only through
4//! `wf_configs/study.json`.
5//! Study owns an immutable effective plan, while Runtime privately constructs
6//! and drives persistence. Execution unit tasks receive structured state recordings;
7//! generic program and Python tasks receive config/dependency snapshots,
8//! captured logs, launcher provenance, and an artifact directory. The module
9//! root exposes verified state-recording readers, never write-session construction.
10
11mod fs;
12mod local;
13mod operational_time;
14mod plan;
15mod session;
16
17#[cfg(test)]
18#[path = "persistence/tests/persistence_resilience.rs"]
19mod persistence_resilience_tests;
20#[cfg(test)]
21#[path = "persistence/tests/persistence_workflow.rs"]
22mod persistence_workflow_tests;
23#[cfg(test)]
24#[path = "persistence/tests/python_reader_conformance.rs"]
25mod python_reader_conformance_tests;
26pub use local::{
27    JsonPayloadDecoder, JsonPayloadDecoderRegistry, PersistenceError, RecordingTiming,
28    StoredStateSeriesReader,
29};
30pub(crate) use plan::PersistencePlan;
31pub(crate) use session::{
32    MemberRecordingProvenance, PersistenceSession, ProgramLaunch, ProgramPersistenceSession,
33};