pub struct RunInfo {
pub dag_id: String,
pub run_id: String,
pub kind: RunKind,
pub planned_for: Timestamp,
pub since: Timestamp,
pub try_number: u32,
pub map_index: Option<u32>,
pub params: Value,
pub event: Option<RunEvent>,
pub first_started: Option<Timestamp>,
}Expand description
The run information a task gets (dag_ctx and the SCHEDR_* variables).
Fields§
§dag_id: StringThe DAG’s ID.
run_id: StringThe run’s ID (a UUIDv7).
kind: RunKindThe run’s kind.
planned_for: TimestampThe moment the run is for.
since: TimestampThe start of the run’s window.
try_number: u32The attempt’s try number, from 1.
map_index: Option<u32>The instance of a mapped task.
params: ValueThe run’s parameters, as stored JSON (decision 138); {} when the DAG takes none.
event: Option<RunEvent>The event that started it, for a run of an event-triggered DAG.
first_started: Option<Timestamp>When a wait step’s first try started, for one tried again (delay counts from it);
None on its first try, and for other tasks.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunInfo
impl<'de> Deserialize<'de> for RunInfo
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
impl Eq for RunInfo
Source§impl JsonSchema for RunInfo
impl JsonSchema for RunInfo
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 StructuralPartialEq for RunInfo
Auto Trait Implementations§
impl Freeze for RunInfo
impl RefUnwindSafe for RunInfo
impl Send for RunInfo
impl Sync for RunInfo
impl Unpin for RunInfo
impl UnsafeUnpin for RunInfo
impl UnwindSafe for RunInfo
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