Skip to main content

scientific_workflow/
task.rs

1//! Generic application workloads behind one uniform runtime definition.
2//!
3//! Application authors implement the crate-root [`ExecutionUnit`] contract and
4//! register the implementation with
5//! `#[scientific_workflow::execution_unit("key")]`.
6//! Study creates execution-unit tasks from registrations plus resolved constants and
7//! creates program tasks directly from declarative executable paths. Python
8//! declarations are lowered by Config to the same program boundary. All use
9//! one private Task definition; adapters and execution ports remain crate-private.
10
11mod catalog;
12mod definition;
13pub mod dependencies;
14mod execution;
15pub mod project;
16mod result;
17mod unit;
18
19#[cfg(test)]
20#[path = "task/tests/task_workflow.rs"]
21mod task_workflow_tests;
22
23#[doc(hidden)]
24pub use catalog::ExecutionUnitRegistration;
25pub(crate) use catalog::{ExecutionUnitCatalog, ExecutionUnitCatalogError};
26pub(crate) use definition::{ExecutionUnitTaskProvenance, Task, TaskKind};
27pub(crate) use execution::{
28    MemberInitialization, ProgramTaskInvocation, TaskDefinition, TaskExecutionHost,
29};
30pub(crate) use result::TaskResult;
31pub use result::UnitResult;
32pub use unit::{ExecutionUnit, InitializationContext, MemberCompletion, MemberView, SeedError};
33pub(crate) use unit::{SEED_DERIVATION_ALGORITHM, derive_program_seed};