#[non_exhaustive]pub enum RunStatus {
Queued,
Running,
Completed,
Failed,
Killed,
}Expand description
Run-state machine for one jobs.execute invocation.
State transitions:
Queued → Running → Completed | Failed | Killed.
Queued ⇒ accepted but not started yet (waiting on the
concurrent-run cap or staleness check); the very first
jobs.progress push usually moves straight to Running.
#[non_exhaustive] so a future SPEC can add states like
Skipped (staleness gate) without a wire bump.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Queued
Accepted, not yet spawned.
Running
tokio::process::Command::spawn() returned, script is
running.
Completed
Exited with code 0 (or whatever the manifest declares as success).
Failed
Exited non-zero, or a Layer 2 skipped-result was published.
Killed
User-initiated kill via jobs.kill. Distinct from Failed
so the SPA can show “stopped by you” instead of “errored”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunStatus
impl<'de> Deserialize<'de> for RunStatus
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 JsonSchema for RunStatus
impl JsonSchema for RunStatus
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 moreimpl Copy for RunStatus
impl Eq for RunStatus
impl StructuralPartialEq for RunStatus
Auto Trait Implementations§
impl Freeze for RunStatus
impl RefUnwindSafe for RunStatus
impl Send for RunStatus
impl Sync for RunStatus
impl Unpin for RunStatus
impl UnsafeUnpin for RunStatus
impl UnwindSafe for RunStatus
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