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 owns the lifecycle observer contract consumed by
6//! the automatically composed UI.
7//! It accepts only a completed Study and never opens project declarations or
8//! binds execution unit keys itself.
9
10mod control;
11mod error;
12mod event;
13mod execution;
14mod output;
15mod presentation;
16mod program;
17mod resources;
18mod reuse;
19mod summary;
20
21#[cfg(test)]
22#[path = "runtime/tests/runtime_workflow.rs"]
23mod runtime_workflow_tests;
24
25pub use crate::composition::execute;
26pub use error::RuntimeError;
27pub(crate) use event::RuntimeEvent;
28pub(crate) use execution::execute_with_observer;
29pub(crate) use presentation::{PresentationFailure, RuntimeObserver};
30pub use summary::{
31    MemberRunSummary, PhaseRunSummary, ReplicateRunSummary, RunSummary, TaskRunKind, TaskRunSummary,
32};
33
34pub(crate) use control::RunControl;
35
36#[cfg(feature = "terminal-ui")]
37pub(crate) use program::force_exit;