Skip to main content

scientific_workflow/
runtime.rs

1//! Execution of a completely validated immutable study.
2//!
3//! Runtime owns active mechanics only: output scopes, replicate and phase
4//! scheduling, task admission, cooperative cancellation, and automatic
5//! persistence lifecycle. It also publishes inferred facts to the automatic UI.
6//! It accepts only a completed Study and never opens project declarations or
7//! binds model keys itself.
8
9mod error;
10mod execution;
11mod host;
12mod output;
13mod summary;
14
15#[cfg(test)]
16#[path = "runtime/tests/runtime_workflow.rs"]
17mod runtime_workflow_tests;
18
19/// Ordinary application-facing runtime API.
20///
21/// This scope is intentionally empty. Ordinary applications call the
22/// crate-level `run(&Path)` facade; Runtime itself accepts only a completed
23/// Study through its Advanced API.
24pub mod basic {}
25
26/// Supported runtime API for inspection, embedding, and Workflow peer modules.
27pub mod advanced {
28    #[allow(unused_imports)]
29    pub use super::basic::*;
30    pub use super::error::RuntimeError;
31    pub use super::execution::execute;
32    pub use super::summary::{
33        ModelRunSummary, PhaseRunSummary, ReplicateRunSummary, RunSummary, TaskRunKind,
34        TaskRunSummary,
35    };
36}