pub struct ReadyInstance {Show 13 fields
pub instance_id: String,
pub run_id: String,
pub task_id: TaskId,
pub try_number: u32,
pub run_kind: RunKind,
pub planned_for: Timestamp,
pub since: Timestamp,
pub dag: Arc<Dag>,
pub version_id: String,
pub content_hash: String,
pub queued_reason: Option<String>,
pub parse_version: String,
pub map_index: i32,
}Expand description
A queued task instance of a running run, ready to be assigned.
Fields§
§instance_id: StringThe task instance’s ID.
run_id: StringThe run’s ID.
task_id: TaskIdThe task.
try_number: u32Its try number so far (the next attempt is this plus one).
run_kind: RunKindThe run’s kind.
planned_for: TimestampThe moment the run is for.
since: TimestampThe start of the run’s window.
dag: Arc<Dag>The DAG version the run runs (shared: the cache’s, see Database::dag_version).
version_id: StringThat version’s ID.
content_hash: StringThe content hash of the code that version was parsed from (the worker reports what it actually ran).
queued_reason: Option<String>Why it waits, as shown.
parse_version: StringThe schedr version of the parse its DAG version came from: workers older than this don’t get it.
map_index: i32Its place among a mapped task’s instances; -1 for an unmapped task.
Trait Implementations§
Source§impl Clone for ReadyInstance
impl Clone for ReadyInstance
Source§fn clone(&self) -> ReadyInstance
fn clone(&self) -> ReadyInstance
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 ReadyInstance
impl Debug for ReadyInstance
impl Eq for ReadyInstance
Source§impl PartialEq for ReadyInstance
impl PartialEq for ReadyInstance
impl StructuralPartialEq for ReadyInstance
Auto Trait Implementations§
impl Freeze for ReadyInstance
impl RefUnwindSafe for ReadyInstance
impl Send for ReadyInstance
impl Sync for ReadyInstance
impl Unpin for ReadyInstance
impl UnsafeUnpin for ReadyInstance
impl UnwindSafe for ReadyInstance
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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