scientific_workflow/task.rs
1//! Generic application workloads behind one uniform runtime definition.
2//!
3//! Application authors import [`basic`], implement [`basic::ScientificModel`],
4//! and register the implementation with `#[scientific_workflow::model("key")]`.
5//! Study creates model tasks from registered models plus resolved constants and
6//! creates program tasks directly from declarative executable paths. Python
7//! declarations are lowered by Config to the same program boundary. All use
8//! one internal Task definition. [`advanced`] retains the same supported
9//! public surface; adapters and execution ports remain crate-private.
10
11mod catalog;
12mod definition;
13mod execution;
14mod model;
15mod result;
16
17/// Ordinary application-facing task API.
18pub mod basic {
19 pub use super::model::ScientificModel;
20 pub use super::result::TaskResult;
21}
22
23/// Supported task API for advanced users and Workflow peer subsystems.
24pub mod advanced {
25 #[allow(unused_imports)]
26 pub use super::basic::*;
27 #[doc(hidden)]
28 pub use super::catalog::ModelRegistration;
29 pub(crate) use super::catalog::{ModelCatalog, ModelCatalogError};
30 pub(crate) use super::definition::{Task, TaskKind};
31 pub(crate) use super::execution::{TaskDefinition, TaskExecutionHost};
32}