pub struct Task {Show 59 fields
pub id: i64,
pub external_id: Option<String>,
pub repo: String,
pub origin: String,
pub title: String,
pub body: String,
pub status: TaskStatus,
pub source: String,
pub source_id: String,
pub author: String,
pub url: String,
pub labels: Vec<String>,
pub agent: Option<String>,
pub model: Option<String>,
pub complexity: String,
pub estimate: u8,
pub route_reason: String,
pub agent_profile: String,
pub route_attempts: i32,
pub attempts: i32,
pub branch: String,
pub worktree: String,
pub worktree_cleaned: bool,
pub owner_node: Option<String>,
pub summary: String,
pub last_error: String,
pub parent_id: Option<i64>,
pub block_reason: Option<String>,
pub pr_number: Option<i32>,
pub pr_review_context: String,
pub last_review_ts: String,
pub review_ts_map: String,
pub last_comment_review_ts: String,
pub merge_conflict_retries: i32,
pub ci_merge_failures: i32,
pub pr_create_failures: i32,
pub push_failures: i32,
pub network_retries: i32,
pub timeout_retries: i32,
pub review_agent_failures: i32,
pub review_resets: i32,
pub review_cycles: i32,
pub review_invocations: i32,
pub needs_review_refires: i32,
pub input_tokens: i64,
pub output_tokens: i64,
pub total_cost_usd: f64,
pub model_reroute_chain: String,
pub limit_reroute_chain: String,
pub memory: Vec<MemoryEntry>,
pub delegations: Vec<Value>,
pub auto_unblock_count: i32,
pub auto_unblock_last_at: String,
pub auto_unblock_last_reason: String,
pub ci_recovery_count: i32,
pub no_code_reroutes: i32,
pub no_code_last_agent: String,
pub created_at: String,
pub updated_at: String,
}Expand description
Unified task record — single row in the tasks table.
Fields§
§id: i64§external_id: Option<String>§repo: String§origin: String§title: String§body: String§status: TaskStatus§source: String§source_id: String§url: String§labels: Vec<String>§agent: Option<String>§model: Option<String>§complexity: String§estimate: u8Fibonacci effort estimate (1, 2, 3, 5, 8, 13, or 21). 0 means not provided.
route_reason: String§agent_profile: String§route_attempts: i32§attempts: i32§branch: String§worktree: String§worktree_cleaned: bool§owner_node: Option<String>The node that runs the task, None until one starts it
summary: String§last_error: String§parent_id: Option<i64>§block_reason: Option<String>§pr_number: Option<i32>§pr_review_context: String§last_review_ts: String§review_ts_map: String§last_comment_review_ts: String§merge_conflict_retries: i32§ci_merge_failures: i32§pr_create_failures: i32§push_failures: i32§network_retries: i32§timeout_retries: i32Runs that ended in a timeout, reset by retry.
review_agent_failures: i32§review_resets: i32§review_cycles: i32§review_invocations: i32§needs_review_refires: i32§input_tokens: i64§output_tokens: i64§total_cost_usd: f64§model_reroute_chain: String§limit_reroute_chain: String§memory: Vec<MemoryEntry>§delegations: Vec<Value>§auto_unblock_count: i32§auto_unblock_last_at: String§auto_unblock_last_reason: String§ci_recovery_count: i32§no_code_reroutes: i32§no_code_last_agent: StringWhich agent produced the last no-code failure (used to detect same-agent loops).
created_at: String§updated_at: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
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
Auto Trait Implementations§
impl Forget for Task
impl Freeze for Taskwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<MemoryEntry>: Freeze,
PhantomData<Value>: Freeze,
impl Move for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Taskwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<MemoryEntry>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
impl UnwindSafe for Task
Blanket Implementations§
impl<T> AppData for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
impl<T> AppDataResponse for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> 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> ⓘ
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