pub struct AffinityConfig {
pub enabled: bool,
pub pin_minutes: u64,
pub enable_last_success_fallback: bool,
pub fallback_min_success_rate: f64,
}Expand description
Cache affinity settings for project-to-worker pinning.
Fields§
§enabled: boolEnable affinity pinning (pin projects to last successful worker).
pin_minutes: u64Time window in minutes to pin a project to its last successful worker. After this window expires, normal selection resumes.
enable_last_success_fallback: boolEnable last-success fallback when no workers match selection criteria. If enabled, the daemon will attempt the last successful worker for a project when all other workers are unavailable or fail selection.
fallback_min_success_rate: f64Minimum success rate for the last-success worker to be used as fallback. Must be lower than min_success_rate to be meaningful as a fallback.
Trait Implementations§
Source§impl Clone for AffinityConfig
impl Clone for AffinityConfig
Source§fn clone(&self) -> AffinityConfig
fn clone(&self) -> AffinityConfig
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 AffinityConfig
impl Debug for AffinityConfig
Source§impl Default for AffinityConfig
impl Default for AffinityConfig
Source§impl<'de> Deserialize<'de> for AffinityConfig
impl<'de> Deserialize<'de> for AffinityConfig
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 AffinityConfig
impl RefUnwindSafe for AffinityConfig
impl Send for AffinityConfig
impl Sync for AffinityConfig
impl Unpin for AffinityConfig
impl UnsafeUnpin for AffinityConfig
impl UnwindSafe for AffinityConfig
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