pub enum AttemptStatus {
Success,
Failed,
TimedOut,
OomKilled,
Cancelled,
Interrupted,
Lost,
AssignmentExpired,
}Expand description
How one attempt (one try) of a task ended.
Variants§
Success
Exit code 0, or the Python function returned normally.
Failed
A non-zero exit code or an unhandled exception.
TimedOut
Exceeded its timeout and was killed by the worker.
OomKilled
Killed by the memory watchdog for exceeding its budget.
Cancelled
Cancelled by a user.
Interrupted
Killed when a draining worker’s grace period ended.
Lost
The worker disappeared.
AssignmentExpired
No Started arrived in time after the assignment.
Implementations§
Source§impl AttemptStatus
impl AttemptStatus
Sourcepub const fn retry_rule(self) -> RetryRule
pub const fn retry_rule(self) -> RetryRule
What happens after an attempt with this status (see archive/PROJECT.md, Task assignment: retries are decided by the master).
Trait Implementations§
Source§impl Clone for AttemptStatus
impl Clone for AttemptStatus
Source§fn clone(&self) -> AttemptStatus
fn clone(&self) -> AttemptStatus
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 moreimpl Copy for AttemptStatus
Source§impl Debug for AttemptStatus
impl Debug for AttemptStatus
Source§impl<'de> Deserialize<'de> for AttemptStatus
impl<'de> Deserialize<'de> for AttemptStatus
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 Display for AttemptStatus
impl Display for AttemptStatus
impl Eq for AttemptStatus
Source§impl Hash for AttemptStatus
impl Hash for AttemptStatus
Source§impl JsonSchema for AttemptStatus
impl JsonSchema for AttemptStatus
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AttemptStatus
impl PartialEq for AttemptStatus
Source§impl Serialize for AttemptStatus
impl Serialize for AttemptStatus
impl StructuralPartialEq for AttemptStatus
Auto Trait Implementations§
impl Freeze for AttemptStatus
impl RefUnwindSafe for AttemptStatus
impl Send for AttemptStatus
impl Sync for AttemptStatus
impl Unpin for AttemptStatus
impl UnsafeUnpin for AttemptStatus
impl UnwindSafe for AttemptStatus
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