pub struct WorkflowStatusSummary {Show 13 fields
pub workflow_id: String,
pub name: String,
pub state: String,
pub total_tasks: usize,
pub completed_tasks: usize,
pub running_tasks: usize,
pub pending_tasks: usize,
pub failed_tasks: usize,
pub skipped_tasks: usize,
pub progress_pct: f64,
pub started_at_secs: Option<u64>,
pub elapsed_secs: Option<u64>,
pub eta_secs: Option<u64>,
}Expand description
Aggregate status counts for a single workflow instance.
Fields§
§workflow_id: StringWorkflow identifier (string to remain portable).
name: StringHuman-readable name.
state: StringCurrent high-level state label (e.g. “running”, “completed”, “failed”).
total_tasks: usizeTotal tasks in this workflow.
completed_tasks: usizeTasks that have completed successfully.
running_tasks: usizeTasks currently executing.
pending_tasks: usizeTasks waiting for dependencies.
failed_tasks: usizeTasks that failed.
skipped_tasks: usizeTasks that were skipped.
progress_pct: f64Progress percentage [0.0, 100.0].
started_at_secs: Option<u64>Unix timestamp (seconds) when the workflow started, if known.
elapsed_secs: Option<u64>Elapsed wall-clock seconds since start, if known.
eta_secs: Option<u64>Estimated seconds remaining, if available.
Implementations§
Source§impl WorkflowStatusSummary
impl WorkflowStatusSummary
Sourcepub fn compute_progress(done: usize, total: usize) -> f64
pub fn compute_progress(done: usize, total: usize) -> f64
Compute progress percentage from task counts.
Considers completed + failed + skipped as “done”.
Trait Implementations§
Source§impl Clone for WorkflowStatusSummary
impl Clone for WorkflowStatusSummary
Source§fn clone(&self) -> WorkflowStatusSummary
fn clone(&self) -> WorkflowStatusSummary
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 WorkflowStatusSummary
impl Debug for WorkflowStatusSummary
Source§impl<'de> Deserialize<'de> for WorkflowStatusSummary
impl<'de> Deserialize<'de> for WorkflowStatusSummary
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
Auto Trait Implementations§
impl Freeze for WorkflowStatusSummary
impl RefUnwindSafe for WorkflowStatusSummary
impl Send for WorkflowStatusSummary
impl Sync for WorkflowStatusSummary
impl Unpin for WorkflowStatusSummary
impl UnsafeUnpin for WorkflowStatusSummary
impl UnwindSafe for WorkflowStatusSummary
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