pub struct Worker {
pub worker_id: String,
pub pool_id: String,
pub cell_id: Option<String>,
pub status: WorkerStatus,
pub last_heartbeat_at: DateTime<Utc>,
pub capacity_json: Option<Value>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Registered Chronon worker instance (heartbeat).
Workers register at startup and send periodic heartbeats so coordinators can detect stale capacity and route claims to live pools.
Fields§
§worker_id: StringStable worker instance id.
pool_id: StringExecution pool this worker serves (matches Run::pool_id).
cell_id: Option<String>Optional placement cell / availability zone label.
status: WorkerStatusWhether the worker accepts new claims.
last_heartbeat_at: DateTime<Utc>Last heartbeat timestamp (updated by SchedulerStore::heartbeat_worker).
capacity_json: Option<Value>Opaque capacity hints (concurrency limits, CPU, etc.).
created_at: DateTime<Utc>Row creation time.
updated_at: DateTime<Utc>Last metadata update.
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