pub struct JobProgress {
pub run_id: String,
pub status: RunStatus,
pub stdout_chunk: Option<String>,
pub stderr_chunk: Option<String>,
pub exit_code: Option<i32>,
}Expand description
Push payload for jobs.progress. Sent on:
- first move from Queued → Running
- each stdout / stderr chunk (split to fit the 1 MiB framing cap — SPEC §2.12.2)
- terminal state transition (Completed / Failed / Killed) with
exit_codepopulated
The reference shape is SPEC §2.12.11’s JobProgress struct.
Fields§
§run_id: StringThe run_id minted by jobs.execute.
status: RunStatus§stdout_chunk: Option<String>Newly-produced stdout, UTF-8 decoded (tolerant — see
kanade-agent::process::capture_tolerant). None when this
push is a pure status transition; Some("") would never be
emitted (the agent omits the field instead).
stderr_chunk: Option<String>Newly-produced stderr. Same conventions as stdout_chunk.
exit_code: Option<i32>Populated on the terminal push only. Agents stamp the actual process exit code (or one of the synthetic codes: 124 = timeout, 125 = deadline-skipped, 127 = staleness-skipped, 137 = killed).
Trait Implementations§
Source§impl Clone for JobProgress
impl Clone for JobProgress
Source§fn clone(&self) -> JobProgress
fn clone(&self) -> JobProgress
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 JobProgress
impl Debug for JobProgress
Source§impl<'de> Deserialize<'de> for JobProgress
impl<'de> Deserialize<'de> for JobProgress
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 JobProgress
impl JsonSchema for JobProgress
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 moreAuto Trait Implementations§
impl Freeze for JobProgress
impl RefUnwindSafe for JobProgress
impl Send for JobProgress
impl Sync for JobProgress
impl Unpin for JobProgress
impl UnsafeUnpin for JobProgress
impl UnwindSafe for JobProgress
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