pub struct BatchEngine { /* private fields */ }Expand description
Batch processing engine with controlled parallelism.
Implementations§
Source§impl BatchEngine
impl BatchEngine
pub fn new() -> Self
Sourcepub fn create_batch(
&mut self,
workflow_id: &str,
items: Vec<Value>,
concurrency: usize,
checkpoint_every: usize,
) -> WorkflowResult<String>
pub fn create_batch( &mut self, workflow_id: &str, items: Vec<Value>, concurrency: usize, checkpoint_every: usize, ) -> WorkflowResult<String>
Create a batch job from a list of items.
Sourcepub fn get_progress(&self, batch_id: &str) -> WorkflowResult<BatchProgress>
pub fn get_progress(&self, batch_id: &str) -> WorkflowResult<BatchProgress>
Get batch progress.
Sourcepub fn get_report(&self, batch_id: &str) -> WorkflowResult<BatchReport>
pub fn get_report(&self, batch_id: &str) -> WorkflowResult<BatchReport>
Generate batch completion report.
Sourcepub fn get_job(&self, batch_id: &str) -> WorkflowResult<&BatchJob>
pub fn get_job(&self, batch_id: &str) -> WorkflowResult<&BatchJob>
Get a batch job.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchEngine
impl RefUnwindSafe for BatchEngine
impl Send for BatchEngine
impl Sync for BatchEngine
impl Unpin for BatchEngine
impl UnsafeUnpin for BatchEngine
impl UnwindSafe for BatchEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more