Files
obiskim/src/obipipeline/src/lib.rs
T
Eric Coissac 175ea5bbd0 feat: add pipeline concurrency throttling and HPC build docs
Introduces a counting semaphore-based throttling mechanism to limit concurrent file I/O and pipeline processing. Replaces custom path wrappers with standardized `Throttled` types across `obikmer` and `obikpartitionner`, ensuring RAII-based resource cleanup and explicit backpressure. Additionally, documents how to redirect Cargo build artifacts to local scratch storage on HPC filesystems to prevent compilation slowdowns.
2026-06-15 10:33:23 +02:00

28 lines
1020 B
Rust

mod scheduler;
pub mod throttle;
pub use scheduler::Pipe;
pub use scheduler::PipeIter;
pub use scheduler::Pipeline;
pub use scheduler::PipelineError;
pub use scheduler::SharedFlatFn;
pub use scheduler::SharedFn;
pub use scheduler::SinkFn;
pub use scheduler::SourceFn;
pub use scheduler::Stage;
pub use scheduler::WorkerPool;
pub use throttle::Throttle;
pub use throttle::ThrottleGuard;
pub use throttle::Throttled;
pub use throttle::throttle;
/// Re-export de `crossbeam_channel::Sender` utilisé dans les macros flat transform.
/// Permet aux macros `make_flat_transform!` / `make_flat_transform_fallible!` d'utiliser
/// `$crate::PipelineSender` sans que le crate appelant n'ait besoin de dépendre
/// directement de `crossbeam_channel`.
pub use crossbeam_channel::Sender as PipelineSender;
// make_sink, make_sink_fallible, make_source, make_source_fallible,
// make_transform, make_transform_fallible, make_flat_transform,
// make_flat_transform_fallible sont exportés à la racine du crate via #[macro_export]