Skip to main content

RunStarter

Trait RunStarter 

Source
pub trait RunStarter: Send + Sync {
    // Required method
    fn start(&self, workflow: &str, run_id: &str, input: Value) -> StartResult;
}
Expand description

Starts the workflow a trigger is bound to.

A seam rather than a direct areev_run::Runner call, for the same reason the CAL executor takes a governance host: the runtime sits above this crate in the dependency order for hosts that want it, and a test needs to observe what would be started without spending a real run. It is also where the duplicate rule lives, which is the whole idempotency story.

Required Methods§

Source

fn start(&self, workflow: &str, run_id: &str, input: Value) -> StartResult

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§