pub struct TaskAttempt {
pub id: String,
pub task_id: String,
pub goal_run_id: String,
pub worker_profile_id: Option<String>,
pub worker_instance_id: String,
pub lease_token: String,
pub status: String,
pub lease_expires_at: String,
pub last_heartbeat_at: String,
pub workspace_id: Option<String>,
pub started_at: String,
pub completed_at: Option<String>,
}Expand description
One fenced claim of a task by one worker instance.
Fields§
§id: String§task_id: String§goal_run_id: String§worker_profile_id: Option<String>§worker_instance_id: String§lease_token: StringLocal fencing token. It is never included in user-facing output.
status: String“claimed”, “running”, “completed”, “failed”, “blocked”, “expired”, “needs_verification”, or “cancelled”
lease_expires_at: String§last_heartbeat_at: String§workspace_id: Option<String>§started_at: String§completed_at: Option<String>Trait Implementations§
Source§impl Clone for TaskAttempt
impl Clone for TaskAttempt
Source§impl Debug for TaskAttempt
impl Debug for TaskAttempt
Source§impl<'de> Deserialize<'de> for TaskAttempt
impl<'de> Deserialize<'de> for TaskAttempt
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 TaskAttempt
Source§impl PartialEq for TaskAttempt
impl PartialEq for TaskAttempt
Source§impl Serialize for TaskAttempt
impl Serialize for TaskAttempt
impl StructuralPartialEq for TaskAttempt
Auto Trait Implementations§
impl Forget for TaskAttempt
impl Freeze for TaskAttempt
impl Move for TaskAttempt
impl RefUnwindSafe for TaskAttempt
impl Send for TaskAttemptwhere
RawVecInner: Send,
impl Sync for TaskAttemptwhere
RawVecInner: Sync,
impl Unpin for TaskAttempt
impl UnsafeUnpin for TaskAttempt
impl UnwindSafe for TaskAttemptwhere
RawVecInner: UnwindSafe,
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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