pub struct WorkerRouting {
pub seen_workers: u32,
pub eligible_workers: u32,
}Expand description
Workers the API saw recently, as seen from one queued run.
Counted from the pick requests received in the last few minutes by this API process: with several replicas, each one only counts the workers that polled it.
§Examples
use ironflow_api::entities::WorkerRouting;
let routing = WorkerRouting {
seen_workers: 2,
eligible_workers: 0,
};
assert!(routing.eligible_workers < routing.seen_workers);Fields§
§seen_workers: u32Workers that asked for a run recently.
eligible_workers: u32Among them, the workers that registered the run’s workflow and carry every tag it requires.
Trait Implementations§
Source§impl Clone for WorkerRouting
impl Clone for WorkerRouting
impl Copy for WorkerRouting
Source§impl Debug for WorkerRouting
impl Debug for WorkerRouting
Source§impl<'de> Deserialize<'de> for WorkerRouting
impl<'de> Deserialize<'de> for WorkerRouting
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 WorkerRouting
Source§impl PartialEq for WorkerRouting
impl PartialEq for WorkerRouting
Source§impl Serialize for WorkerRouting
impl Serialize for WorkerRouting
impl StructuralPartialEq for WorkerRouting
Auto Trait Implementations§
impl Freeze for WorkerRouting
impl RefUnwindSafe for WorkerRouting
impl Send for WorkerRouting
impl Sync for WorkerRouting
impl Unpin for WorkerRouting
impl UnsafeUnpin for WorkerRouting
impl UnwindSafe for WorkerRouting
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.