pub struct SchedulingConfig {
pub max_consecutive_same_key: usize,
pub resource_switch_cooldown: Duration,
pub enable_reordering: bool,
}Expand description
Scheduling configuration for batch queue fairness.
Controls how consecutive same-resource jobs are limited to prevent starvation of other resources.
Fields§
§max_consecutive_same_key: usizeMaximum consecutive jobs for the same resource key before yielding to a different resource. Default: 3.
resource_switch_cooldown: DurationCooldown duration between resource switches. Default: 0 (none).
enable_reordering: boolWhether to enable model-aware reordering. Default: true.
Trait Implementations§
Source§impl Clone for SchedulingConfig
impl Clone for SchedulingConfig
Source§fn clone(&self) -> SchedulingConfig
fn clone(&self) -> SchedulingConfig
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 SchedulingConfig
impl Debug for SchedulingConfig
Source§impl Default for SchedulingConfig
impl Default for SchedulingConfig
Source§impl<'de> Deserialize<'de> for SchedulingConfig
impl<'de> Deserialize<'de> for SchedulingConfig
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 SchedulingConfig
impl RefUnwindSafe for SchedulingConfig
impl Send for SchedulingConfig
impl Sync for SchedulingConfig
impl Unpin for SchedulingConfig
impl UnsafeUnpin for SchedulingConfig
impl UnwindSafe for SchedulingConfig
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