Skip to main content

Runner

Trait Runner 

Source
pub trait Runner: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn spawn(&self, ctx: &RunCtx<'_>) -> Result<Box<dyn RunHandle>>;
}
Expand description

Job execution — runs a single sha’s pipeline.

Required Methods§

Source

fn name(&self) -> &'static str

Human name for logs (“dagger”, “script”).

Source

fn spawn(&self, ctx: &RunCtx<'_>) -> Result<Box<dyn RunHandle>>

Spawn the run. The caller waits/kills via the returned Child — keeping the handle outside the queue lock is what makes cancel-in-flight safe.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§