pub struct Interruptible {
pub workflow_id: WorkflowId,
pub run_id: RunId,
pub dag: Dag<Arc<dyn InterruptibleStep>>,
pub schema: Arc<StateSchema>,
pub checkpointer: Arc<dyn Checkpointer>,
pub interrupt_before: HashSet<StepId>,
pub interrupt_after: HashSet<StepId>,
}Fields§
§workflow_id: WorkflowId§run_id: RunId§dag: Dag<Arc<dyn InterruptibleStep>>§schema: Arc<StateSchema>§checkpointer: Arc<dyn Checkpointer>§interrupt_before: HashSet<StepId>§interrupt_after: HashSet<StepId>Implementations§
Source§impl Interruptible
impl Interruptible
pub async fn run(&self) -> Result<RunOutcome>
Sourcepub async fn resume(&self, command: Command) -> Result<RunOutcome>
pub async fn resume(&self, command: Command) -> Result<RunOutcome>
Resume from the most recent paused checkpoint.
Auto Trait Implementations§
impl Freeze for Interruptible
impl !RefUnwindSafe for Interruptible
impl Send for Interruptible
impl Sync for Interruptible
impl Unpin for Interruptible
impl UnsafeUnpin for Interruptible
impl !UnwindSafe for Interruptible
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