pub struct PartitionAssignment {
pub partition_id: String,
pub owner_instance_id: String,
pub lease_until: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Per-partition lease for coordinator shard ownership.
Each scheduler instance owns a subset of partitions; the assigner upserts rows so tick discovery only scans jobs hashed into owned partitions.
Fields§
§partition_id: StringPartition index as a string key (matches hash ring slot).
owner_instance_id: StringScheduler instance id currently responsible for this partition.
lease_until: DateTime<Utc>Assignment expiry; partitions may be stolen after this instant.
updated_at: DateTime<Utc>Last time this row was written (rebalance or heartbeat).
Trait Implementations§
Source§impl Clone for PartitionAssignment
impl Clone for PartitionAssignment
Source§fn clone(&self) -> PartitionAssignment
fn clone(&self) -> PartitionAssignment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartitionAssignment
impl Debug for PartitionAssignment
Source§impl<'de> Deserialize<'de> for PartitionAssignment
impl<'de> Deserialize<'de> for PartitionAssignment
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 PartitionAssignment
impl RefUnwindSafe for PartitionAssignment
impl Send for PartitionAssignment
impl Sync for PartitionAssignment
impl Unpin for PartitionAssignment
impl UnsafeUnpin for PartitionAssignment
impl UnwindSafe for PartitionAssignment
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