pub struct ConductTask {Show 13 fields
pub id: String,
pub title: String,
pub instruction: String,
pub repo: String,
pub priority: i32,
pub status: String,
pub attempts: usize,
pub max_attempts: usize,
pub last_error: Option<String>,
pub hold_reason: Option<String>,
pub hold_source: Option<String>,
pub blocked_by: Vec<String>,
pub answers: Vec<ConductAnswer>,
}Expand description
A task shown to crate::conduct: either runnable (a dependency-blocking
target), or Running past the stall threshold with no live daemon
claiming it. priority is shown so the conductor can see the order the
loop already runs in — never so it can change it: nothing in
crate::conduct::Decision carries a priority back.
Fields§
§id: StringTask id, to be copied back verbatim in a decision.
title: StringOne line.
instruction: StringThe task, handed to the graph verbatim.
repo: StringRepository the task runs in.
priority: i32Shown, never written back — see this type’s own doc.
status: Stringcrate::queue::TaskStatus::as_str.
attempts: usizeClaims spent so far.
max_attempts: usizeAttempts before the loop holds this task for a human.
last_error: Option<String>Why the last attempt did not land.
hold_reason: Option<String>The reason an operator or machine placed a hold.
hold_source: Option<String>manual or machine when the hold source is known.
blocked_by: Vec<String>This task’s current crate::queue::Task::blocked_by, if any.
answers: Vec<ConductAnswer>Questions asked about this task and what the operator said back — see
crate::queue::Task::answers.
Trait Implementations§
Source§impl Clone for ConductTask
impl Clone for ConductTask
Source§fn clone(&self) -> ConductTask
fn clone(&self) -> ConductTask
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ConductTask
impl RefUnwindSafe for ConductTask
impl Send for ConductTask
impl Sync for ConductTask
impl Unpin for ConductTask
impl UnsafeUnpin for ConductTask
impl UnwindSafe for ConductTask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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> ⓘ
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> ⓘ
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