pub struct WorkflowRunRecord {
pub run_id: String,
pub name: String,
pub description: String,
pub status: WorkflowRunStatus,
pub journal_path: PathBuf,
pub script_ref: Option<String>,
pub created_at_ms: u64,
pub updated_at_ms: u64,
pub pause_kind: Option<PauseKind>,
pub message: Option<String>,
pub result: Option<Value>,
}Expand description
Durable metadata for one workflow run.
Fields§
§run_id: StringStable run id (host-assigned, often [machi_types::WorkflowRunId]).
name: StringWorkflow meta name when known.
description: StringOptional description.
status: WorkflowRunStatusCurrent status.
journal_path: PathBufAbsolute or relative path to the journal jsonl.
script_ref: Option<String>Optional script fingerprint (hash or path).
created_at_ms: u64Unix ms created.
updated_at_ms: u64Unix ms last updated.
pause_kind: Option<PauseKind>Last pause kind when paused.
message: Option<String>Last error or pause message.
result: Option<Value>Completed workflow result payload (for host resume_from replay).
Implementations§
Source§impl WorkflowRunRecord
impl WorkflowRunRecord
Sourcepub fn new_running(
run_id: impl Into<String>,
name: impl Into<String>,
journal_path: PathBuf,
) -> Self
pub fn new_running( run_id: impl Into<String>, name: impl Into<String>, journal_path: PathBuf, ) -> Self
Start a running record.
Sourcepub fn apply_outcome(&mut self, outcome: &WorkflowOutcome)
pub fn apply_outcome(&mut self, outcome: &WorkflowOutcome)
Apply a terminal outcome.
Trait Implementations§
Source§impl Clone for WorkflowRunRecord
impl Clone for WorkflowRunRecord
Source§fn clone(&self) -> WorkflowRunRecord
fn clone(&self) -> WorkflowRunRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkflowRunRecord
impl Debug for WorkflowRunRecord
Source§impl<'de> Deserialize<'de> for WorkflowRunRecord
impl<'de> Deserialize<'de> for WorkflowRunRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkflowRunRecord
impl PartialEq for WorkflowRunRecord
Source§impl Serialize for WorkflowRunRecord
impl Serialize for WorkflowRunRecord
impl StructuralPartialEq for WorkflowRunRecord
Auto Trait Implementations§
impl Freeze for WorkflowRunRecord
impl RefUnwindSafe for WorkflowRunRecord
impl Send for WorkflowRunRecord
impl Sync for WorkflowRunRecord
impl Unpin for WorkflowRunRecord
impl UnsafeUnpin for WorkflowRunRecord
impl UnwindSafe for WorkflowRunRecord
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