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 local;
12mod plan;
13mod session;
14
15#[cfg(test)]
16#[path = "persistence/tests/persistence_resilience.rs"]
17mod persistence_resilience_tests;
18#[cfg(test)]
19#[path = "persistence/tests/persistence_workflow.rs"]
20mod persistence_workflow_tests;
21#[cfg(test)]
22#[path = "persistence/tests/python_reader_conformance.rs"]
23mod python_reader_conformance_tests;
24pub use local::{
25    JsonPayloadDecoder, JsonPayloadDecoderRegistry, PersistenceError, RecordingTiming,
26    StoredStateSeriesReader,
27};
28pub(crate) use plan::PersistencePlan;
29pub(crate) use session::{
30    MemberRecordingProvenance, PersistenceSession, ProgramLaunch, ProgramPersistenceSession,
31};