pub enum TaskState {
Pending,
Ready,
Running {
started_at: SystemTime,
node_id: Option<NodeId>,
},
Completed {
completed_at: SystemTime,
execution_time: Duration,
},
Failed {
failed_at: SystemTime,
error: String,
retry_count: usize,
},
Cancelled {
cancelled_at: SystemTime,
},
Retrying {
next_retry_at: SystemTime,
retry_count: usize,
},
}Expand description
Task execution state
Variants§
Pending
Task is waiting to be scheduled
Ready
Task is ready to execute (dependencies satisfied)
Running
Task is currently running
Completed
Task completed successfully
Failed
Task failed
Cancelled
Task was cancelled
Fields
§
cancelled_at: SystemTimeRetrying
Task is waiting for retry
Trait Implementations§
impl StructuralPartialEq for TaskState
Auto Trait Implementations§
impl Freeze for TaskState
impl RefUnwindSafe for TaskState
impl Send for TaskState
impl Sync for TaskState
impl Unpin for TaskState
impl UnwindSafe for TaskState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 more