Skip to main content

ExecutionEngine

Trait ExecutionEngine 

Source
pub trait ExecutionEngine: Send + Sync {
    // Required methods
    fn start<'life0, 'async_trait>(
        &'life0 self,
        stores: Stores,
        run: StartRun,
    ) -> Pin<Box<dyn Future<Output = Result<RunResult, RunError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn resume<'life0, 'async_trait>(
        &'life0 self,
        stores: Stores,
        run_id: RunId,
    ) -> Pin<Box<dyn Future<Output = Result<RunResult, RunError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Execution engine interface.

Required Methods§

Source

fn start<'life0, 'async_trait>( &'life0 self, stores: Stores, run: StartRun, ) -> Pin<Box<dyn Future<Output = Result<RunResult, RunError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Starts a new run from the supplied manifest, plan, and initial context.

Source

fn resume<'life0, 'async_trait>( &'life0 self, stores: Stores, run_id: RunId, ) -> Pin<Box<dyn Future<Output = Result<RunResult, RunError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resumes a previously started run from persisted state.

Implementors§