pub struct FlowRecord {
pub id: i32,
pub flow_name: String,
pub status: FlowStatus,
pub plan: Value,
pub current_stage: i32,
pub running_tasks: Vec<i32>,
pub finished_tasks: Vec<i32>,
pub failed_tasks: Vec<i32>,
pub task_definitions: Value,
}Expand description
Detailed status of a flow.
Fields§
§id: i32Unique identifier for the flow.
flow_name: StringName of the flow as specified in crate::model::Flow.
status: FlowStatusStatus of the flow.
plan: ValueExecution plan of the flow. This is a nested 2D JSON array containing integer elements.
The integer elements refer to index of a task defined in crate::model::Flow.
A task is executed in multiple stages, where each stage is a set of tasks.
The set of tasks in the last stage are dependent set of tasks in the last but second stage and so on,
with the first stage having tasks that are independent having no dependencies (leaf tasks).
Tasks belonging to the same stage are not dependent on each other, if a task is dependent on another task,
they will belong to different stages.
current_stage: i32Current stage that is running. Set of tasks in the same stage are spawned at the same time because they are not dependent on each other.
running_tasks: Vec<i32>Indices of tasks that are currently running.
finished_tasks: Vec<i32>Indices of tasks that have finished.
failed_tasks: Vec<i32>Indices of tasks that have failed.
task_definitions: ValueList of tasks that belong to this flow, as define in crate::model::Flow.
Trait Implementations§
Source§impl Clone for FlowRecord
impl Clone for FlowRecord
Source§fn clone(&self) -> FlowRecord
fn clone(&self) -> FlowRecord
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FlowRecord
impl Debug for FlowRecord
Source§impl<'de> Deserialize<'de> for FlowRecord
impl<'de> Deserialize<'de> for FlowRecord
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>,
Source§impl Display for FlowRecord
impl Display for FlowRecord
Source§impl<'a, R: Row> FromRow<'a, R> for FlowRecord
impl<'a, R: Row> FromRow<'a, R> for FlowRecord
Source§impl PartialEq for FlowRecord
impl PartialEq for FlowRecord
Source§impl Serialize for FlowRecord
impl Serialize for FlowRecord
impl StructuralPartialEq for FlowRecord
Auto Trait Implementations§
impl Freeze for FlowRecord
impl RefUnwindSafe for FlowRecord
impl Send for FlowRecord
impl Sync for FlowRecord
impl Unpin for FlowRecord
impl UnwindSafe for FlowRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.