pub struct Worker {
pub id: String,
pub tags: Vec<String>,
pub max_claims: i32,
pub registered_at: i64,
pub last_heartbeat: i64,
pub last_status: Option<String>,
pub last_phase: Option<String>,
pub last_task_id: Option<String>,
pub workflow: Option<String>,
pub overlays: Vec<String>,
}Expand description
Worker (session-based) - represents a connected worker.
Fields§
§id: String§max_claims: i32§registered_at: i64§last_heartbeat: i64§last_status: Option<String>Last status the worker transitioned to (for prompts/dashboard)
last_phase: Option<String>Last phase the worker transitioned to (for prompts/dashboard)
last_task_id: Option<String>Last task ID the worker transitioned on (for per-task activity tracking)
workflow: Option<String>Named workflow this worker is using (e.g., “swarm” for workflow-swarm.yaml)
overlays: Vec<String>Overlay names applied on top of the workflow (e.g., [“git”, “user-request”])
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Worker
impl<'de> Deserialize<'de> for Worker
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 Freeze for Worker
impl RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnsafeUnpin for Worker
impl UnwindSafe for Worker
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,
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