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 host;
15mod output;
16mod presentation;
17mod program;
18mod resource;
19mod reuse;
20mod summary;
21
22#[cfg(test)]
23#[path = "runtime/tests/runtime_workflow.rs"]
24mod runtime_workflow_tests;
25
26pub use crate::composition::execute;
27pub use error::RuntimeError;
28pub(crate) use event::RuntimeEvent;
29pub(crate) use execution::execute_with_observer;
30pub(crate) use presentation::{PresentationFailure, RuntimeObserver};
31pub use summary::{
32    MemberRunSummary, PhaseRunSummary, ReplicateRunSummary, RunSummary, TaskRunKind, TaskRunSummary,
33};
34
35pub(crate) use control::RunControl;
36
37#[cfg(feature = "terminal-ui")]
38pub(crate) use program::force_exit;