Skip to main content

WorkflowRunStore

Trait WorkflowRunStore 

Source
pub trait WorkflowRunStore: Send + Sync {
    // Required methods
    fn put(&self, record: WorkflowRunRecord) -> Result<(), StoreError>;
    fn get(&self, run_id: &str) -> Result<Option<WorkflowRunRecord>, StoreError>;
    fn list(&self) -> Result<Vec<WorkflowRunRecord>, StoreError>;
    fn delete(&self, run_id: &str) -> Result<bool, StoreError>;
}
Expand description

Host port for listing and resuming workflow runs.

Required Methods§

Source

fn put(&self, record: WorkflowRunRecord) -> Result<(), StoreError>

Insert or replace a record.

§Errors

Backend I/O failures.

Source

fn get(&self, run_id: &str) -> Result<Option<WorkflowRunRecord>, StoreError>

Fetch by run id.

§Errors

Backend I/O failures.

Source

fn list(&self) -> Result<Vec<WorkflowRunRecord>, StoreError>

List all runs (newest-updated first when possible).

§Errors

Backend I/O failures.

Source

fn delete(&self, run_id: &str) -> Result<bool, StoreError>

Remove a run metadata entry (does not delete the journal file).

§Errors

Backend I/O failures.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§